forked from extern/egroupware
Take nm response after initialization into account when trying to create emptyRow for placeholders action
This commit is contained in:
parent
dd03c7fe16
commit
f9fa811e2e
@ -232,7 +232,7 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({
|
|||||||
{
|
{
|
||||||
// No rows, start with an empty
|
// No rows, start with an empty
|
||||||
this._selectionMgr.clear();
|
this._selectionMgr.clear();
|
||||||
this._emptyRow();
|
this._emptyRow(this._grid._total);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -898,8 +898,9 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({
|
|||||||
/**
|
/**
|
||||||
* Insert an empty / placeholder row when there is no data to display
|
* Insert an empty / placeholder row when there is no data to display
|
||||||
*/
|
*/
|
||||||
_emptyRow: function()
|
_emptyRow: function(_noRows)
|
||||||
{
|
{
|
||||||
|
var noRows = _noRows || true;
|
||||||
jQuery(".egwGridView_empty",this._grid.innerTbody).remove();
|
jQuery(".egwGridView_empty",this._grid.innerTbody).remove();
|
||||||
if(typeof this._grid._rowProvider != "undefined" && this._grid._rowProvider.getPrototype("empty"))
|
if(typeof this._grid._rowProvider != "undefined" && this._grid._rowProvider.getPrototype("empty"))
|
||||||
{
|
{
|
||||||
@ -911,7 +912,7 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({
|
|||||||
placeholder.appendTo(this._grid.innerTbody);
|
placeholder.appendTo(this._grid.innerTbody);
|
||||||
|
|
||||||
// Register placeholder action only if no rows
|
// Register placeholder action only if no rows
|
||||||
if (this._grid._total == 0)
|
if (noRows)
|
||||||
{
|
{
|
||||||
// Get the action links if the links callback is set
|
// Get the action links if the links callback is set
|
||||||
var links = null;
|
var links = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user