mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed issue with spinner
This commit is contained in:
parent
4ea1d697dc
commit
1b0fe3887f
@ -738,14 +738,7 @@ if ($tab == 'tree') {
|
|||||||
* Group tree view.
|
* Group tree view.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo html_print_image(
|
ui_print_spinner(__('Loading'));
|
||||||
'images/spinner.gif',
|
|
||||||
true,
|
|
||||||
[
|
|
||||||
'class' => 'loading_tree',
|
|
||||||
'style' => 'display: none;',
|
|
||||||
]
|
|
||||||
);
|
|
||||||
echo "<div id='tree-controller-recipient'></div>";
|
echo "<div id='tree-controller-recipient'></div>";
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
@ -1041,7 +1034,7 @@ $tab = 'group_edition';
|
|||||||
if (typeof treeController.recipient != 'undefined' && treeController.recipient.length > 0)
|
if (typeof treeController.recipient != 'undefined' && treeController.recipient.length > 0)
|
||||||
treeController.recipient.empty();
|
treeController.recipient.empty();
|
||||||
|
|
||||||
$(".loading_tree").show();
|
showSpinner();
|
||||||
|
|
||||||
var parameters = {};
|
var parameters = {};
|
||||||
parameters['page'] = "include/ajax/tree.ajax";
|
parameters['page'] = "include/ajax/tree.ajax";
|
||||||
@ -1065,7 +1058,7 @@ $tab = 'group_edition';
|
|||||||
data: parameters,
|
data: parameters,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
$(".loading_tree").hide();
|
hideSpinner();
|
||||||
|
|
||||||
treeController.init({
|
treeController.init({
|
||||||
recipient: $("div#tree-controller-recipient"),
|
recipient: $("div#tree-controller-recipient"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user