Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Rows can now be resetted after all submenuitems are added
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis Mosshammer committed Dec 20, 2012
1 parent bafb401 commit 95b252b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/modules/Cronks/lib/js/Cronk/grid/plugins/RowActionPanel.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 95b252b

Please sign in to comment.