'<%= pkg.assets %>js/common/inputs.js'
'<%= pkg.assets %>js/common/dialogs.js'
'<%= pkg.assets %>js/application.js'
+ '<%= pkg.assets %>js/csv.js'
'<%= pkg.assets %>js/dashboard.js'
'<%= pkg.assets %>js/duplication.js'
'<%= pkg.assets %>js/resource.js'
'<%= pkg.assets %>js/common/inputs.js'
'<%= pkg.assets %>js/common/dialogs.js'
'<%= pkg.assets %>js/application.js'
+ '<%= pkg.assets %>js/csv.js'
'<%= pkg.assets %>js/dashboard.js'
'<%= pkg.assets %>js/duplication.js'
'<%= pkg.assets %>js/resource.js'
value = node.prop('placeholder') || ''
key: node.prop('name'), value: value).get()
- postData.params = (params.map (param) -> param.key + '=' + param.value).join(';')
+ postData.params = (params.map (param) -> param.key + '=' + window.csvEscape(param.value)).join(';')
@sendRequest(action, postData)
--- /dev/null
+(function() {
+
+ window.csvEscape = function(value) {
+ var escaped = value.replace(/"/g, '\\"');
+ return '"' + escaped + '"';
+ };
+
+})();