mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT: Added 'greyed out' status of batch action checkboxes while applicable pages are being loaded via ajax. (from r94774)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96820 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ad92b80737
commit
59899c68cf
@ -116,6 +116,9 @@ ul.tree.multiselect span.a span.b a {
|
||||
ul.tree.multiselect span.a.nodelete span.b a {
|
||||
background-image: url(../images/tickbox-canttick.gif) !important;
|
||||
}
|
||||
ul.tree.multiselect span.a.treeloading span.b a {
|
||||
background-image: url(../images/tickbox-greyedout.gif) !important;
|
||||
}
|
||||
|
||||
|
||||
ul.tree.multiselect span.a.selected span.b span.c a {
|
||||
|
BIN
images/tickbox-greyedout.gif
Normal file
BIN
images/tickbox-greyedout.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 B |
@ -402,7 +402,8 @@ batchActionGlobals = {
|
||||
if(id) ids.push(id);
|
||||
|
||||
// Disable the nodes while the ajax request is being processed
|
||||
this.addNodeClass('nodelete');
|
||||
this.removeNodeClass('nodelete');
|
||||
this.addNodeClass('treeloading');
|
||||
});
|
||||
|
||||
// Post to the server to ask which pages can have this batch action applied
|
||||
@ -414,6 +415,8 @@ batchActionGlobals = {
|
||||
|
||||
// Set a CSS class on each tree node indicating which can be batch-actioned and which can't
|
||||
jQuery(rootNode).find('li').each(function() {
|
||||
this.removeNodeClass('treeloading');
|
||||
|
||||
var id = parseInt(this.id.replace('record-',''));
|
||||
if(id) {
|
||||
if(applicableIDMap[id] === true) {
|
||||
|
Loading…
Reference in New Issue
Block a user