mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
Add attribute to turn off double click to edit editable widget
This commit is contained in:
parent
6f227e38e7
commit
46ec335c42
@ -30,6 +30,12 @@ var et2_editableWidget = (function(){ "use strict"; return et2_inputWidget.exten
|
|||||||
default: false,
|
default: false,
|
||||||
description: "If set to 'editable' will start readonly, double clicking will make it editable and clicking out will save"
|
description: "If set to 'editable' will start readonly, double clicking will make it editable and clicking out will save"
|
||||||
},
|
},
|
||||||
|
toggle_readonly: {
|
||||||
|
name: "toggle_readonly",
|
||||||
|
type: "boolean",
|
||||||
|
default: true,
|
||||||
|
description: "Double clicking makes widget editable. If off, must be made editable in some other way."
|
||||||
|
},
|
||||||
save_callback: {
|
save_callback: {
|
||||||
name: "save_callback",
|
name: "save_callback",
|
||||||
type: "string",
|
type: "string",
|
||||||
@ -59,7 +65,7 @@ var et2_editableWidget = (function(){ "use strict"; return et2_inputWidget.exten
|
|||||||
if(_attrs.readonly && typeof _attrs.readonly === 'string')
|
if(_attrs.readonly && typeof _attrs.readonly === 'string')
|
||||||
{
|
{
|
||||||
_attrs.readonly = true;
|
_attrs.readonly = true;
|
||||||
this._toggle_readonly = true;
|
this._toggle_readonly = _attrs.toggle_readonly;
|
||||||
}
|
}
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user