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:
Sam Minnee 2010-01-13 00:08:37 +00:00
parent ad92b80737
commit 59899c68cf
3 changed files with 7 additions and 1 deletions

View File

@ -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 {

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 B

View File

@ -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) {