Trim input values before localStoring them.
This commit is contained in:
parent
d7b6b0823a
commit
543caa37d4
@ -386,7 +386,7 @@
|
|||||||
return conf[this.name] = this.checked;
|
return conf[this.name] = this.checked;
|
||||||
},
|
},
|
||||||
value: function() {
|
value: function() {
|
||||||
$.set(this.name, this.value);
|
$.set(this.name, this.value.trim());
|
||||||
return conf[this.name] = this.value;
|
return conf[this.name] = this.value;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -313,7 +313,7 @@ $.extend $,
|
|||||||
$.set @name, @checked
|
$.set @name, @checked
|
||||||
conf[@name] = @checked
|
conf[@name] = @checked
|
||||||
value: ->
|
value: ->
|
||||||
$.set @name, @value
|
$.set @name, @value.trim()
|
||||||
conf[@name] = @value
|
conf[@name] = @value
|
||||||
addStyle: (css) ->
|
addStyle: (css) ->
|
||||||
style = $.el 'style',
|
style = $.el 'style',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user