mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 08:28:43 +01:00
Fix buttononly in datagrid, implement legacy options
This commit is contained in:
parent
8dced05f23
commit
c28b8662f5
@ -51,6 +51,8 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM], {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
legacyOptions: ["image", "ro_image"],
|
||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
|
||||||
@ -197,7 +199,7 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM], {
|
|||||||
setDetachedAttributes: function(_nodes, _values)
|
setDetachedAttributes: function(_nodes, _values)
|
||||||
{
|
{
|
||||||
// Datagrid puts in the row for null
|
// Datagrid puts in the row for null
|
||||||
this.btn = _nodes[0].nodeName == 'button' ? jQuery(_nodes[0]) : null;
|
this.btn = _nodes[0].nodeName[0] != '#' ? jQuery(_nodes[0]) : null;
|
||||||
this.image = jQuery(_nodes[1]);
|
this.image = jQuery(_nodes[1]);
|
||||||
|
|
||||||
if (typeof _values["id"] != "undefined")
|
if (typeof _values["id"] != "undefined")
|
||||||
|
Loading…
Reference in New Issue
Block a user