mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: #4834 disable the tree multiselect feature also when switching to another tab.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@95705 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
459241010b
commit
945de82ef9
@ -37,11 +37,10 @@
|
|||||||
|
|
||||||
// if tab which contains this form is shown, make the tree selectable
|
// if tab which contains this form is shown, make the tree selectable
|
||||||
$('#TreeActions').bind('tabsselect', function(e, ui) {
|
$('#TreeActions').bind('tabsselect', function(e, ui) {
|
||||||
if($(ui.panel).attr('id') != 'TreeActions-batchactions') return;
|
// if we are selecting another tab, or the panel is visible (meaning about to be closed),
|
||||||
|
|
||||||
// if the panel is visible (meaning about to be closed),
|
|
||||||
// disable tree selection and reset any values. Otherwise enable it.
|
// disable tree selection and reset any values. Otherwise enable it.
|
||||||
if($(ui.panel).is(':visible')) {
|
if($(ui.panel).attr('id') != 'TreeActions-batchactions' || $(ui.panel).is(':visible')) {
|
||||||
|
// @TODO: this is unneccessarily fired also when switching between two other tabs
|
||||||
$(self.getTree()).removeClass('multiselect');
|
$(self.getTree()).removeClass('multiselect');
|
||||||
} else {
|
} else {
|
||||||
self._multiselectTransform();
|
self._multiselectTransform();
|
||||||
|
Loading…
Reference in New Issue
Block a user