mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT Added loading indicator for the AJAX request "Show deleted pages" checkbox in the CMS
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76264 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b1b07c5325
commit
7dd4e4284c
@ -435,6 +435,13 @@ body.stillLoading select {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#checkboxActionIndicator {
|
||||
float: right;
|
||||
width: auto;
|
||||
margin-top: 7px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.spacer,
|
||||
li.spacer {
|
||||
float: none;
|
||||
|
@ -141,17 +141,20 @@ ShowDeletedPagesAction.prototype = {
|
||||
__makeDraggableAfterUpdate = true;
|
||||
}
|
||||
|
||||
var indicator = $('checkboxActionIndicator');
|
||||
indicator.style.display = 'block';
|
||||
|
||||
var request = new Ajax.Request(SiteTreeHandlers.loadTree_url + '?ID=0&ajax=1', {
|
||||
onSuccess: function(response) {
|
||||
$('sitetree').innerHTML = response.responseText;
|
||||
SiteTree.applyTo($('sitetree'));
|
||||
if(__makeDraggableAfterUpdate) $('sitetree').makeDraggable();
|
||||
indicator.style.display = 'none';
|
||||
},
|
||||
onFailure: function(response) {
|
||||
errorMessage('Could not update tree', response);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,11 +62,14 @@
|
||||
|
||||
</div>
|
||||
<div class="checkboxAboveTree">
|
||||
<img id="checkboxActionIndicator" src="cms/images/network-save.gif">
|
||||
<div>
|
||||
<input type="checkbox" id="sortitems" /> <label for="sortitems"><% _t('ENABLEDRAGGING','Allow drag & drop reordering', PR_HIGH) %></label>
|
||||
<input type="checkbox" id="sortitems" />
|
||||
<label for="sortitems"><% _t('ENABLEDRAGGING','Allow drag & drop reordering', PR_HIGH) %></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" id="showdeletedpages" /> <label for="showdeletedpages"><% _t('SHOW_DELETED_PAGES','Show deleted pages', PR_HIGH) %></label>
|
||||
<input type="checkbox" id="showdeletedpages" />
|
||||
<label for="showdeletedpages"><% _t('SHOW_DELETED_PAGES','Show deleted pages', PR_HIGH) %></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user