Fixed the javascript code that uses the history reservate word

This commit is contained in:
mdtrooper 2014-10-30 18:48:37 +01:00
parent ace7ea15c8
commit a3939687ed
1 changed files with 4 additions and 4 deletions

View File

@ -731,7 +731,7 @@ $(document).ready( function() {
return; return;
} }
meta = $('#hidden-meta').val(); meta = $('#hidden-meta').val();
history = $('#hidden-history').val(); history_var = $('#hidden-history').val();
$tr = $(this).parents ("tr"); $tr = $(this).parents ("tr");
id = this.id.split ("-").pop (); id = this.id.split ("-").pop ();
@ -744,7 +744,7 @@ $(document).ready( function() {
"id" : id, "id" : id,
"similars" : <?php echo ($group_rep ? 1 : 0) ?>, "similars" : <?php echo ($group_rep ? 1 : 0) ?>,
"meta" : meta, "meta" : meta,
"history" : history "history" : history_var
}, },
function (data, status) { function (data, status) {
if (data == "ok") { if (data == "ok") {
@ -795,7 +795,7 @@ function validate_event_advanced(id, new_status) {
var similar_ids; var similar_ids;
similar_ids = $('#hidden-similar_ids_'+id).val(); similar_ids = $('#hidden-similar_ids_'+id).val();
meta = $('#hidden-meta').val(); meta = $('#hidden-meta').val();
var history = $('#hidden-history').val(); var history_var = $('#hidden-history').val();
$("#status_img_"+id).attr ("src", "images/spinner.gif"); $("#status_img_"+id).attr ("src", "images/spinner.gif");
@ -805,7 +805,7 @@ function validate_event_advanced(id, new_status) {
"event_ids" : similar_ids, "event_ids" : similar_ids,
"new_status" : new_status, "new_status" : new_status,
"meta" : meta, "meta" : meta,
"history" : history "history" : history_var
}, },
function (data, status) { function (data, status) {
if (data == "status_ok") { if (data == "status_ok") {