wrap droppable checkboxes in a <div>
This commit is contained in:
parent
7140b8d966
commit
a347f719de
|
@ -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($) {
|
||||
|
|
Reference in New Issue