Lines 157-162
Link Here
|
157 |
// then default to comma. |
157 |
// then default to comma. |
158 |
strDelimiter = (strDelimiter || ","); |
158 |
strDelimiter = (strDelimiter || ","); |
159 |
|
159 |
|
|
|
160 |
strData = escape_str(strData); |
161 |
|
160 |
// Create a regular expression to parse the CSV values. |
162 |
// Create a regular expression to parse the CSV values. |
161 |
var objPattern = new RegExp( |
163 |
var objPattern = new RegExp( |
162 |
( |
164 |
( |
Lines 280-285
Link Here
|
280 |
"fnDrawCallback": function(oSettings) { |
282 |
"fnDrawCallback": function(oSettings) { |
281 |
/* Apply the jEditable handlers to the table on all fields w/o the no_edit id */ |
283 |
/* Apply the jEditable handlers to the table on all fields w/o the no_edit id */ |
282 |
$('#quotes_editor tbody td[id!="no_edit"]').editable( function(value, settings) { |
284 |
$('#quotes_editor tbody td[id!="no_edit"]').editable( function(value, settings) { |
|
|
285 |
value = escape_str(value); |
283 |
var cellPosition = oTable.fnGetPosition( this ); |
286 |
var cellPosition = oTable.fnGetPosition( this ); |
284 |
oTable.fnUpdate(value, cellPosition[0], cellPosition[1], false, false); |
287 |
oTable.fnUpdate(value, cellPosition[0], cellPosition[1], false, false); |
285 |
return(value); |
288 |
return(value); |
Lines 346-352
Link Here
|
346 |
function fnGetData(element) { |
349 |
function fnGetData(element) { |
347 |
var lines = oTable.fnGetData(); |
350 |
var lines = oTable.fnGetData(); |
348 |
$(lines).each(function(line){ |
351 |
$(lines).each(function(line){ |
349 |
var data = {source: this[1], text: this[2]}; |
352 |
var s = this[1].replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); |
|
|
353 |
var t = this[2].replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); |
354 |
var data = {source: s, text: t}; |
350 |
var success = 0; var error = 0; |
355 |
var success = 0; var error = 0; |
351 |
$.ajax({ |
356 |
$.ajax({ |
352 |
url : "/api/v1/quotes", |
357 |
url : "/api/v1/quotes", |
353 |
- |
|
|