MINOR Moving Tree.js entwine rules into namespace (wasn't applying multiple/draggable toggles because of that)

This commit is contained in:
Ingo Schommer 2012-03-06 20:17:42 +01:00
parent 755a9c398a
commit 0c6bc2f7a1

View File

@ -254,19 +254,19 @@
}
}
},
onunmatch: function() {
}
});
});
$('.cms-tree.multiple').entwine({
onmatch: function() {
this._super();
this.jstree('show_checkboxes');
},
onunmatch: function() {
this._super();
this.jstree('uncheck_all');
this.jstree('hide_checkboxes');
},
@ -321,8 +321,10 @@
this._super();
},
onclick: function(e) {
$('.cms-tree').toggleClass('draggable', $(e.target).val() == 'draggable');
$('.cms-tree')
.toggleClass('draggable', $(e.target).val() == 'draggable')
.toggleClass('multiple', $(e.target).val() == 'multiselect');
}
});
});
}(jQuery));