forked from extern/egroupware
fix custom fields (somehow input widgets had no readonly) and some JS errors
Et2Number still misses styles, thought it extends Et2Textbox
This commit is contained in:
parent
7b36c24dde
commit
817aba5af6
@ -19,9 +19,7 @@
|
||||
<description value=" - "/>
|
||||
<description value="type"/>
|
||||
</hbox>
|
||||
<menulist>
|
||||
<menupopup id="types" no_lang="1" onchange="1"/>
|
||||
</menulist>
|
||||
<select id="types" no_lang="1" onchange="1"/>
|
||||
<button label="Delete" id="delete" onclick="app.admin.cf_type_delete"/>
|
||||
<textbox blur="new name" id="name"/>
|
||||
<button label="Create" id="create"/>
|
||||
@ -60,17 +58,15 @@
|
||||
<nextmatch-sortheader label="Last modified" id="cf_modified"/>
|
||||
</row>
|
||||
<row class="row" valign="top">
|
||||
<menulist>
|
||||
<menupopup id="${row}[cf_type2]" no_lang="1" multiple="true" empty_label="All"/>
|
||||
</menulist>
|
||||
<select id="${row}[cf_type2]" no_lang="1" multiple="true" empty_label="All" readonly="true"/>
|
||||
<description id="${row}[cf_name]" no_lang="1" />
|
||||
<vbox>
|
||||
<description id="${row}[cf_label]" no_lang="1"/>
|
||||
<description id="${row}[cf_label]"/>
|
||||
</vbox>
|
||||
<customfields-types statustext="Type of customfield" id="{$row}[cf_type]"/>
|
||||
<checkbox id="${row}[cf_needed]" selected_value="1" unselected_value="0"/>
|
||||
<select-account id="${row}[cf_private]" account_type="both"/>
|
||||
<customfields-types statustext="Type of customfield" id="{$row}[cf_type]" readonly="true"/>
|
||||
<checkbox id="${row}[cf_needed]" selected_value="1" unselected_value="0" readonly="true"/>
|
||||
<select-account id="${row}[cf_private]" account_type="both" readonly="true"/>
|
||||
<description id="${row}[cf_values]" no_lang="1" class="values"/>
|
||||
<vbox>
|
||||
<description id="${row}[cf_len]" no_lang="1"/>
|
||||
@ -78,8 +74,8 @@
|
||||
</vbox>
|
||||
<description id="${row}[cf_order]" no_lang="1"/>
|
||||
<vbox>
|
||||
<date-time id="${row}[cf_modified]"/>
|
||||
<select-account id="${row}[cf_modifier]"/>
|
||||
<date-time id="${row}[cf_modified]" readonly="true"/>
|
||||
<select-account id="${row}[cf_modifier]" readonly="true"/>
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
|
@ -35,25 +35,6 @@ export class Et2Number extends Et2Textbox
|
||||
}
|
||||
}
|
||||
|
||||
/** @param {import('@lion/core').PropertyValues } changedProperties */
|
||||
updated(changedProperties)
|
||||
{
|
||||
super.updated(changedProperties);
|
||||
|
||||
if (changedProperties.has('min'))
|
||||
{
|
||||
this._inputNode.min = this.min;
|
||||
}
|
||||
if (changedProperties.has('max'))
|
||||
{
|
||||
this._inputNode.max = this.max;
|
||||
}
|
||||
if (changedProperties.has('step'))
|
||||
{
|
||||
this._inputNode.step = this.step;
|
||||
}
|
||||
}
|
||||
|
||||
transformAttributes(attrs)
|
||||
{
|
||||
if (attrs.precision === 0 && typeof attrs.step === 'undefined')
|
||||
@ -69,7 +50,7 @@ export class Et2Number extends Et2Textbox
|
||||
}
|
||||
|
||||
/**
|
||||
* Somehow the setter is not inherited fro the parent, not defining it here leaves the validator a string!
|
||||
* Somehow the setter is not inherited from the parent, not defining it here leaves the validator a string!
|
||||
*
|
||||
* @param regexp
|
||||
*/
|
||||
|
@ -940,6 +940,11 @@ const Et2WidgetMixin = <T extends Constructor>(superClass : T) =>
|
||||
return null;
|
||||
}
|
||||
|
||||
getParentDOMNode() : HTMLElement
|
||||
{
|
||||
return this._parent_node;
|
||||
}
|
||||
|
||||
addChild(child : et2_widget | Et2WidgetClass)
|
||||
{
|
||||
if(this._children.indexOf(child) >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user