diff options
author | wei <> | 2006-01-09 03:40:59 +0000 |
---|---|---|
committer | wei <> | 2006-01-09 03:40:59 +0000 |
commit | 9c9a2d731fea9679f65904a3a6b72dd78b4253a4 (patch) | |
tree | 1d81a12a7a79e74e98218d01c6278a81f0996f5d /framework/Web/Javascripts/base/prado.js | |
parent | 10420d2bcde1a7437b58175f417170b2d6d93e50 (diff) |
Update library
Diffstat (limited to 'framework/Web/Javascripts/base/prado.js')
-rw-r--r-- | framework/Web/Javascripts/base/prado.js | 66 |
1 files changed, 1 insertions, 65 deletions
diff --git a/framework/Web/Javascripts/base/prado.js b/framework/Web/Javascripts/base/prado.js index 3eded927..7dd14e19 100644 --- a/framework/Web/Javascripts/base/prado.js +++ b/framework/Web/Javascripts/base/prado.js @@ -1,65 +1 @@ -Prado = Class.create();
-
-Prado.version = '3.0a';
-
-Prado.Button = Class.create();
-
-Prado.Button.buttonFired = false;
-Prado.Button.fireButton = function(event, target)
-{
- if (!Prado.Button.buttonFired && event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea")))
- {
- var defaultButton = document.getElementById ? document.getElementById(target) : document.all[target];
- if (defaultButton && typeof(defaultButton.click) != "undefined")
- {
- Prado.Button.buttonFired = true;
- defaultButton.click();
- event.cancelBubble = true;
- if (event.stopPropagation)
- event.stopPropagation();
- return false;
- }
- }
- return true;
-}
-
-Prado.TextBox = Class.create();
-
-/**
- * Returns FALSE when the "Enter" key is pressed AND when onchange
- * property is defined. The onchange function is called. However,
- * it does not call event listener functions.
- * @return boolean false if "Enter" and onchange property is defined, true otherwise.
- */
-Prado.TextBox.handleReturnKey = function(ev)
-{
- var kc = ev.keyCode != null ? ev.keyCode : ev.charCode;
- if(kc == Event.KEY_RETURN)
- {
- var target = Event.element(ev);
- if(target && isFunction(target.onchange))
- {
- target.onchange();
- Event.stop(ev);
- return false;
- }
- }
- return true;
-}
-
-/**
- * Creates a LinkButton and register the post back to the onclick event.
- */
-/* to finish when doPostback changes
-Prado.LinkButton = Class.create();
-Prado.LinkButton.prototype =
-{
- initialize : function(element, name)
- {
- Event.observe(element, 'click', function(e)
- {
- Prado.doPostback(element, name, '');
- Event.stop(e);
- });
- }
-}*/
\ No newline at end of file +var Prado = { Version: 2.0 };
\ No newline at end of file |