Fixed the javascript code that uses the history reservate word

(cherry picked from commit 502b8ac7e0)
This commit is contained in:
mdtrooper 2014-10-30 18:48:37 +01:00
parent cfad96f40d
commit 9d4515b0a6
1 changed files with 4 additions and 4 deletions

View File

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