diff --git a/install/static/add.js b/install/static/add.js index d587b80d9..f2eebb8ac 100644 --- a/install/static/add.js +++ b/install/static/add.js @@ -84,6 +84,8 @@ function ipa_add_dialog(spec) { that.add_button('Cancel', function() { that.close(); }); + + that.dialog_init(); }; that.add = function(record, on_success, on_error) { @@ -109,7 +111,6 @@ function ipa_add_dialog(spec) { ipa_cmd('add', args, options, on_success, on_error, that.entity_name); }; - that.superior_init = that.superior('init'); that.add_dialog_init = that.init; return that; diff --git a/install/static/details.js b/install/static/details.js index f0e24ac08..cc1a4e19d 100644 --- a/install/static/details.js +++ b/install/static/details.js @@ -142,13 +142,6 @@ function ipa_details_section(spec){ that.fields = []; that.fields_by_name = {}; - that.superior = function(name) { - var method = that[name]; - return function () { - return method.apply(that, arguments); - }; - }; - that.__defineGetter__("entity_name", function(){ return that._entity_name; }); diff --git a/install/static/entity.js b/install/static/entity.js index dcb7e6f82..9372d917e 100644 --- a/install/static/entity.js +++ b/install/static/entity.js @@ -47,13 +47,6 @@ function ipa_facet(spec) { that.create_action_panel = ipa_facet_create_action_panel; - that.superior = function(name) { - var method = that[name]; - return function () { - return method.apply(that, arguments); - }; - }; - function init() { } @@ -105,13 +98,6 @@ function ipa_entity(spec) { that.associations = []; that.associations_by_name = {}; - that.superior = function(name) { - var method = that[name]; - return function () { - return method.apply(that, arguments); - }; - }; - that.get_dialog = function(name) { return that.dialogs_by_name[name]; }; @@ -273,7 +259,6 @@ function ipa_entity_set_add_definition(entity_name, data) { 'title': data[1] }); entity.add_dialog(dialog); - dialog.init(); for (var i=0; i