mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Get checkbox custom fields working
This commit is contained in:
parent
56070c43c5
commit
bcc1c054c2
@ -146,7 +146,13 @@ var et2_customfields_list = et2_baseWidget.extend([et2_IDetachedDOM], {
|
||||
if(!jQuery.isEmptyObject(this.options.fields) && !this.options.fields[field_name]) continue;
|
||||
|
||||
var field = this.options.customfields[field_name];
|
||||
var id = "{"+this.id + "}["+this.prefix + field_name+"]";
|
||||
|
||||
var id = this.id + "["+this.prefix + field_name+"]";
|
||||
// Need curlies around ID for nm row expansion
|
||||
if(this.id == '$row')
|
||||
{
|
||||
id = "{" + this.id + "}" + "["+this.prefix + field_name+"]";
|
||||
}
|
||||
|
||||
// Avoid creating field twice
|
||||
if(!this.rows[id])
|
||||
@ -298,6 +304,15 @@ var et2_customfields_list = et2_baseWidget.extend([et2_IDetachedDOM], {
|
||||
return true;
|
||||
},
|
||||
|
||||
_setup_checkbox: function(field_name, field, attrs) {
|
||||
// Read-only checkbox is just text
|
||||
if(attrs.readonly)
|
||||
{
|
||||
attrs.ro_true = field.label;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* People set button attributes as
|
||||
* label: javascript
|
||||
|
Loading…
Reference in New Issue
Block a user