* Api: Fix enabled actions don't show up on nm initiation

This commit is contained in:
Hadi Nategh 2018-07-03 18:21:58 +02:00
parent 7d6ae58e4f
commit 18efbfad98

View File

@ -910,6 +910,9 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({
}
placeholder.appendTo(this._grid.innerTbody);
// Register placeholder action only if no rows
if (this._grid._total == 0)
{
// Get the action links if the links callback is set
var links = null;
if (this._linkCallback)
@ -923,6 +926,7 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({
}
this._selectionMgr.registerRow("",0,placeholder.get(0), links);
}
}
},
/**