diff options
Diffstat (limited to 'framework/Web/Javascripts/prado/prado.js')
-rw-r--r-- | framework/Web/Javascripts/prado/prado.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/framework/Web/Javascripts/prado/prado.js b/framework/Web/Javascripts/prado/prado.js index 52bf2b89..90ddbe8d 100644 --- a/framework/Web/Javascripts/prado/prado.js +++ b/framework/Web/Javascripts/prado/prado.js @@ -1,51 +1,2 @@ var Prado = { Version: '3.0a' };
-Prado.Button = Class.create();
-
-/**
- * Usage: Event.observe("panelID", "keypress", Prado.fireButton.bindEvent($("panelID"), "targetButtonID"));
- */
-Object.extend(Prado.Button,
-{
- buttonFired : false,
- fireButton : function(e, target)
- {
- var eventFired = !this.buttonFired && Event.keyCode(e) == Event.KEY_RETURN;
- var isTextArea = Event.element(e).targName.toLowerCase() == "textarea";
- if (eventFired && !isTextArea)
- {
- var defaultButton = $(target);
- if (defaultButton)
- {
- Prado.Button.buttonFired = true;
- Event.fireEvent(defaultButton,"click");
- Event.stop(e);
- return false;
- }
- }
- return true;
- }
-});
-
-Prado.TextBox = Class.create();
-
-/**
- * Usage: Event.observe("textboxID", "keypress", Prado.fireButton.bindEvent($("textboxID")));
- */
-Object.extend(Prado.TextBox,
-{
- handleReturnKey = function(e)
- {
- if(Event.keyCode(e) == Event.KEY_RETURN)
- {
- var target = Event.element(e);
- if(target)
- {
- Event.fireEvent(target, "change");
- Event.stop(e);
- return false;
- }
- }
- return true;
- }
-});
|