[icinga-checkins] icinga.org: icinga-web/jmosshammer/filtering: Rows can now be resetted after all submenuitems are added

git at icinga.org git at icinga.org
Wed Jan 2 15:43:54 CET 2013


Module: icinga-web
Branch: jmosshammer/filtering
Commit: 95b252bf79abcf715c94dc46d92ff00cb64dded5
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=95b252bf79abcf715c94dc46d92ff00cb64dded5

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Dec 18 18:18:22 2012 +0100

Rows can now be resetted after all submenuitems are added

---

 .../lib/js/Cronk/grid/plugins/RowActionPanel.js    |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronk/grid/plugins/RowActionPanel.js b/app/modules/Cronks/lib/js/Cronk/grid/plugins/RowActionPanel.js
index 8427ce1..259d93b 100644
--- a/app/modules/Cronks/lib/js/Cronk/grid/plugins/RowActionPanel.js
+++ b/app/modules/Cronks/lib/js/Cronk/grid/plugins/RowActionPanel.js
@@ -219,10 +219,19 @@ Ext.ns("Cronk.grid.plugins");
             
             Ext.iterate(cm.columns, function(col, idx) {
                 if (col instanceof Ext.grid.Column) {
-                    
+
                     //  && this.noautoclose === false
                     if (this.panel.hasSubItems() === true) {
                         cm.addColumn(subEventColumn, idx++);
+                    } else {
+                        cm.addColumn(subEventColumn, idx++);
+                        subEventColumn.on("click",function(el,grid,idx,ev) {
+                            var menu = this.panel.createContextMenu();
+                            AppKit.log(menu);
+                            menu.items.removeAt(0);
+                            menu.show(ev.target);
+                            ev.preventDefault();
+                        },this)
                     }
                     
                     if (this.panel.hasInlineComponents() === true) {





More information about the icinga-checkins mailing list