mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-09 14:55:25 +02:00
feature #378, bug fixed on draw() call
The oTable javascript variable is built with jQuery('#userList').dataTable(),
which returns a jQuery object, while jQuery(...).Datatable() would directly
return a DataTables API object. So now, to access the draw() function, we need
to get the api() first from the jQuery object.
https://datatables.net/manual/api#Accessing-the-API
This commit is contained in:
@@ -93,7 +93,7 @@ jQuery(document).ready(function() {
|
||||
jQuery("#addUserForm .loading").show();
|
||||
},
|
||||
success:function(data) {
|
||||
oTable.draw();
|
||||
oTable.api().draw();
|
||||
jQuery("#addUserForm .loading").hide();
|
||||
|
||||
var data = jQuery.parseJSON(data);
|
||||
@@ -584,7 +584,7 @@ jQuery(document).on('click', '.close-user-details', function(e) {
|
||||
title:"{/literal}{'Edit user'|translate}{literal}",
|
||||
href:".user_form_popin",
|
||||
onClosed: function() {
|
||||
oTable.draw();
|
||||
oTable.api().draw();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -825,7 +825,7 @@ jQuery(document).on('click', '.close-user-details', function(e) {
|
||||
jQuery("#applyActionLoading").show();
|
||||
},
|
||||
success:function(data) {
|
||||
oTable.draw();
|
||||
oTable.api().draw();
|
||||
jQuery("#applyActionLoading").hide();
|
||||
jQuery("#applyActionBlock .infos").show();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user