wrap droppable checkboxes in a <div>

This commit is contained in:
Frédéric Péters 2011-11-20 15:10:28 +01:00
parent 7140b8d966
commit a347f719de
1 changed files with 3 additions and 3 deletions

View File

@ -139,13 +139,13 @@ function setup_appearance(index, elem)
console.log('dummy input:', dummyinput);
sync_from_checkboxes(elem, dummyinput);
dummyinput.click(function() {
$(elem).find('span.option').toggle();
$(elem).find('div.droppedcheckboxes').toggle();
});
$(elem).find('.fieldErrorBox').after(dummyinput);
$(elem).find('span.option').click(function() {
$(elem).find('span.option').wrapAll('<div class="droppedcheckboxes">').click(function() {
sync_from_checkboxes(elem, dummyinput);
});
$(elem).find('span.option').hide();
$(elem).find('div.droppedcheckboxes').hide();
}
(function($) {