Lines 215-225
Link Here
|
215 |
'bServerSide': true, |
215 |
'bServerSide': true, |
216 |
'bProcessing': true, |
216 |
'bProcessing': true, |
217 |
'sAjaxSource': '/cgi-bin/koha/catalogue/itemsearch.pl', |
217 |
'sAjaxSource': '/cgi-bin/koha/catalogue/itemsearch.pl', |
218 |
'fnServerParams': function(aoData) { |
218 |
'fnServerData': function(sSource, aoData, fnCallback) { |
219 |
aoData.push( { 'name': 'format', 'value': 'json' } ); |
219 |
aoData.push( { 'name': 'format', 'value': 'json' } ); |
220 |
for (i in params) { |
220 |
for (i in params) { |
221 |
aoData.push(params[i]); |
221 |
aoData.push(params[i]); |
222 |
} |
222 |
} |
|
|
223 |
$.ajax({ |
224 |
'dataType': 'json', |
225 |
'type': 'POST', |
226 |
'url': sSource, |
227 |
'data': aoData, |
228 |
'success': function(json){ |
229 |
fnCallback(json); |
230 |
} |
231 |
}); |
223 |
}, |
232 |
}, |
224 |
'sDom': '<"top pager"ilp>t<"bottom pager"ip>r', |
233 |
'sDom': '<"top pager"ilp>t<"bottom pager"ip>r', |
225 |
'aoColumns': [ |
234 |
'aoColumns': [ |
226 |
- |
|
|