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;
|
||||
},
|
||||
value: function() {
|
||||
$.set(this.name, this.value);
|
||||
$.set(this.name, this.value.trim());
|
||||
return conf[this.name] = this.value;
|
||||
}
|
||||
},
|
||||
|
||||
@ -313,7 +313,7 @@ $.extend $,
|
||||
$.set @name, @checked
|
||||
conf[@name] = @checked
|
||||
value: ->
|
||||
$.set @name, @value
|
||||
$.set @name, @value.trim()
|
||||
conf[@name] = @value
|
||||
addStyle: (css) ->
|
||||
style = $.el 'style',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user