* 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 f5f7358445
commit 60f2f4fee6

View File

@ -913,6 +913,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)
@ -926,6 +929,7 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({
}
this._selectionMgr.registerRow("",0,placeholder.get(0), links);
}
}
},
/**