From 0163442f370dc430e27b11b40b2f0e1a1c3dc62a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 9 Oct 2013 14:35:03 +0000 Subject: [PATCH] changed signature of on* event handlers: 1. event, 2. widget (context is DOM node), event handlers have now type "js" in attribute description and get automatic converted to a function, no more need to call et2_compileLegacyJS --- admin/js/app.js | 7 --- admin/templates/default/index.xet | 2 +- etemplate/js/et2_core_baseWidget.js | 27 +++++----- etemplate/js/et2_core_common.js | 14 ++++- etemplate/js/et2_core_inheritance.js | 4 +- etemplate/js/et2_core_inputWidget.js | 21 +++----- etemplate/js/et2_core_legacyJSFunctions.js | 12 ++--- etemplate/js/et2_core_widget.js | 26 ++++++++++ etemplate/js/et2_extension_nextmatch.js | 28 ++-------- etemplate/js/et2_widget_button.js | 22 ++++---- etemplate/js/et2_widget_dropdown_button.js | 27 ++++++---- etemplate/js/et2_widget_progress.js | 5 -- etemplate/js/et2_widget_tree.js | 59 ++++++++++++---------- mail/js/app.js | 4 +- mail/templates/default/index.xet | 2 +- 15 files changed, 133 insertions(+), 127 deletions(-) diff --git a/admin/js/app.js b/admin/js/app.js index 2c4b8fe999..ab8619e804 100644 --- a/admin/js/app.js +++ b/admin/js/app.js @@ -17,10 +17,6 @@ app.admin = AppJS.extend( { appname: 'admin', - /** - * et2 widget container - */ - et2: null, /** * reference to splitter */ @@ -47,7 +43,6 @@ app.admin = AppJS.extend( */ destroy: function() { - delete this.et2; // call parent this._super.apply(this, arguments); }, @@ -64,8 +59,6 @@ app.admin = AppJS.extend( // call parent this._super.apply(this, arguments); - this.et2 = _et2.widgetContainer; - var iframe = this.iframe = this.et2.getWidgetById('iframe'); if (iframe) { diff --git a/admin/templates/default/index.xet b/admin/templates/default/index.xet index db1aeef5fa..4938833e90 100644 --- a/admin/templates/default/index.xet +++ b/admin/templates/default/index.xet @@ -43,7 +43,7 @@