forked from extern/egroupware
Use getInputNode() instead of inconsistant variable for default label implementation
This commit is contained in:
parent
9f3551cc7a
commit
fb43e96aeb
@ -112,9 +112,10 @@ var et2_inputWidget = et2_valueWidget.extend(et2_IInput, {
|
|||||||
set_label: function(_label) {
|
set_label: function(_label) {
|
||||||
if(_label != this.label)
|
if(_label != this.label)
|
||||||
{
|
{
|
||||||
label = et2_csvSplit(_label, 2, '%s');
|
this.label = (typeof _label == 'undefined' ? "" : _label);
|
||||||
if(label[0]) this.input.before("<span class='et2_label'>"+label[0]+"</span>");
|
var label = et2_csvSplit(_label, 2, '%s');
|
||||||
if(label[1]) this.input.after("<span class='et2_label'>"+label[1]+"</span>");
|
if(label[0]) $j(this.getInputNode()).before("<span class='et2_label'>"+label[0]+"</span>");
|
||||||
|
if(label[1]) $j(this.getInputNode()).after("<span class='et2_label'>"+label[1]+"</span>");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user