From 7ecd1801146af3f4dd00daf40e73164b6cccbb32 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 16 Aug 2013 06:46:38 -0400 Subject: [PATCH] Bug 10558 [QA Follow-up 4] - switch $.getJSON to $.ajax --- .../prog/en/modules/tools/manage-marc-import.tt | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index d4c7958..edf5f85 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -49,9 +49,15 @@ $(document).ready(function(){ "fnServerData": function ( sSource, aoData, fnCallback ) { aoData.push( { "name": "import_batch_id", "value": [% import_batch_id %] } ); - $.getJSON( sSource, aoData, function (json) { - fnCallback(json) - } ); + $.ajax({ + 'dataType': 'json', + 'type': 'POST', + 'url': sSource, + 'data': aoData, + 'success': function(json){ + fnCallback(json); + } + }); }, "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { $('td:eq(1)', nRow).html( -- 1.7.2.5