[icinga-checkins] icinga.org: icinga-web/next: Cronk FilterWindow: remove obsolete Save button (refs #3268)

git at icinga.org git at icinga.org
Thu Mar 28 15:58:17 CET 2013


Module: icinga-web
Branch: next
Commit: eb112fd1cd08377d7ec15c77f330a1ede99f23a5
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=eb112fd1cd08377d7ec15c77f330a1ede99f23a5

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Thu Mar 28 15:56:54 2013 +0100

Cronk FilterWindow: remove obsolete Save button (refs #3268)

---

 .../js/Icinga/Cronks/util/FilterEditorWindow.js    |   12 +-----------
 .../lib/js/Icinga/Cronks/util/FilterState.js       |    8 +-------
 2 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Icinga/Cronks/util/FilterEditorWindow.js b/app/modules/Cronks/lib/js/Icinga/Cronks/util/FilterEditorWindow.js
index 1ae2dda..750a7c2 100644
--- a/app/modules/Cronks/lib/js/Icinga/Cronks/util/FilterEditorWindow.js
+++ b/app/modules/Cronks/lib/js/Icinga/Cronks/util/FilterEditorWindow.js
@@ -72,16 +72,6 @@ Ext.ns("Icinga.Cronks.util").FilterEditorWindow = function(grid,filters) {
         return new Ext.Panel({
             tbar: [{
                 xtype: 'button',
-                text: _('Save'),
-                iconCls: 'icinga-icon-accept',
-                handler: function() {
-                    this.state.save();
-
-
-                },
-                scope: this
-            },'->',{
-                xtype: 'button',
                 text: _('Back to cronks'),
                 iconCls: 'icinga-icon-arrow-left',
                 handler: function() {
@@ -132,4 +122,4 @@ Ext.ns("Icinga.Cronks.util").FilterEditorWindow = function(grid,filters) {
     };
     
     
-};
\ No newline at end of file
+};
diff --git a/app/modules/Cronks/lib/js/Icinga/Cronks/util/FilterState.js b/app/modules/Cronks/lib/js/Icinga/Cronks/util/FilterState.js
index 5442a86..ad4ee21 100644
--- a/app/modules/Cronks/lib/js/Icinga/Cronks/util/FilterState.js
+++ b/app/modules/Cronks/lib/js/Icinga/Cronks/util/FilterState.js
@@ -39,12 +39,6 @@
             this.grid.getStore().setBaseParam("filter_json", Ext.encode(filter));
         },
 
-        save: function() {
-            this.applyFilterToGrid(this.tree.treeToFilterObject());
-            this.grid.fireEvent('activate');
-
-        },
-
         applyFilterToGrid: function(filter) {
             var store = this.grid.getStore();
             if(filter)
@@ -56,4 +50,4 @@
 
     });
 
-})();
\ No newline at end of file
+})();





More information about the icinga-checkins mailing list