[Koha-bugs] [Bug 10558] Convert records table in manage-marc-import.pl to ajax DataTable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 16 10:04:38 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10558

--- Comment #32 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Using $.ajax instead of $.getJSON (2 GET), there is only one call (1 POST) to
the ajax script:

-              $.getJSON( sSource, aoData, function (json) {
-                  fnCallback(json)
-              } );
+              $.ajax({
+                  'dataType': 'json',
+                  'type': 'POST',
+                  'url': sSource,
+                  'data': aoData,
+                  'success': function(json){
+                      fnCallback(json);
+                  }
+              });

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list