diff options
Diffstat (limited to 'itjs')
-rw-r--r-- | itjs/state.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs/state.js b/itjs/state.js index 19f7438..81156f1 100644 --- a/itjs/state.js +++ b/itjs/state.js @@ -108,7 +108,7 @@ store_state: function() { var value = this[key], type = typeof(value); if (!key.match(/^it_/) && type.match(/boolean|number|string/)) - ser[ser.length] = key + ':' + ((type == 'string') ? "'" + value.replace(/([\\'])/g, '\\\1') + "'" : value); + ser[ser.length] = key + ':' + ((type == 'string') ? "'" + value.replace(/([\\'])/g, '\\$1') + "'" : value); // escape backslashes and single quotes } this.it_history_field.value = ser.join(','); |