Implement updating just the affected nm row with egw_refresh()

This commit is contained in:
Nathan Gray
2013-02-14 11:25:24 +00:00
parent a3647e1b00
commit 298309074e
3 changed files with 45 additions and 16 deletions

View File

@ -460,7 +460,9 @@ var et2_dataview_controller = Class.extend({
},
/**
*
* Called by the data source when the data changes
*
* @param _data Object|null New data, or null. Null will remove the row.
*/
_dataCallback: function (_data) {
// Set the "hasData" flag
@ -473,6 +475,13 @@ var et2_dataview_controller = Class.extend({
// Remove everything from the current row
this.entry.row.clear();
// If there's no data, stop
if(typeof _data == "undefined" || _data == null)
{
this._destroyCallback();
return;
}
// Fill the row DOM Node with data
this.self._rowCallback.call(
this.self._context,