forked from extern/egroupware
Implement detached interface for grid so sub-widgets get processed
This commit is contained in:
parent
fd728b7317
commit
a2de7dce27
@ -21,7 +21,7 @@
|
|||||||
/**
|
/**
|
||||||
* Class which implements the "grid" XET-Tag
|
* Class which implements the "grid" XET-Tag
|
||||||
*/
|
*/
|
||||||
var et2_grid = et2_DOMWidget.extend({
|
var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM], {
|
||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
// Create the table body and the table
|
// Create the table body and the table
|
||||||
@ -597,8 +597,25 @@ var et2_grid = et2_DOMWidget.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return this._super(this, vis);
|
return this._super(this, vis);
|
||||||
}
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code for implementing et2_IDetachedDOM
|
||||||
|
* This doesn't need to be implemented.
|
||||||
|
* Individual widgets are detected and handled by the grid, but the interface is needed for this to happen
|
||||||
|
*/
|
||||||
|
getDetachedAttributes: function(_attrs)
|
||||||
|
{
|
||||||
|
},
|
||||||
|
|
||||||
|
getDetachedNodes: function()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
},
|
||||||
|
|
||||||
|
setDetachedAttributes: function(_nodes, _values)
|
||||||
|
{
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
et2_register_widget(et2_grid, ["grid"]);
|
et2_register_widget(et2_grid, ["grid"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user