toggle a class on opened dropped check box

This commit is contained in:
Frédéric Péters 2011-11-30 00:09:51 +01:00
parent e6483c1c8a
commit 1123bbb8c1
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ function setup_appearance(index, elem)
var dummyinput = $('<input class="dummyinput" type="text" readonly="readonly"/>');
sync_from_checkboxes(elem, dummyinput);
dummyinput.click(function() {
$(elem).find('div.droppedcheckboxes').toggle();
$(elem).find('div.droppedcheckboxes').toggle().parent().toggleClass('openboxes');
});
$(elem).find('.fieldErrorBox').after(dummyinput);
$(elem).find('span.option').wrapAll('<div class="droppedcheckboxes">').click(function() {