We can now hide the multiselectionwidget

This commit is contained in:
Bo Simonsen 2012-10-11 16:37:59 +02:00
parent b9519eaf83
commit 2f29eb70ab
1 changed files with 12 additions and 5 deletions

View File

@ -322,13 +322,20 @@
});
$('.multipleSelectionWidget dt').live('click', function () {
if ($(this).parent().children('dd').hasClass('hiddenStructure')) {
$(this).parent().children('dd').removeClass('hiddenStructure');
} else {
$(this).parent().children('dd').addClass('hiddenStructure');
}
$(this).parent().children('dd').toggle();
});
/* Clicking outside a multipleSelectionWidget will close all open
multipleSelectionWidgets */
$(window).click(function(event){
if ($(event.target).parents('.multipleSelectionWidget').length) {
return;
}
$('.multipleSelectionWidget dd').hide();
});
$('.queryindex').live('change', function () {
var fname = $(this).closest('.QueryWidget').attr('data-fieldname');
var index = $(this).find(':selected')[0].value;