[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 12:47:55 CEST 2013


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

--- Comment #33 from Kyle M Hall <kyle at bywatersolutions.com> ---
Thanks Jonathan! I'll implement this change and add another followup shortly.

(In reply to Jonathan Druart from comment #32)
> 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