!function(a){"use strict";function t(){}t.prototype.updateOutput=function(t){var e=t.length?t:a(t.target),t=e.data("output");window.JSON?t.val(window.JSON.stringify(e.nestable("serialize"))):t.val("JSON browser support required for this demo.")},t.prototype.init=function(){a("#nestable_list_1").nestable({group:1}).on("change",this.updateOutput),a("#nestable_list_2").nestable({group:1}).on("change",this.updateOutput),this.updateOutput(a("#nestable_list_1").data("output",a("#nestable_list_1_output"))),this.updateOutput(a("#nestable_list_2").data("output",a("#nestable_list_2_output"))),a("#nestable_list_menu").on("click",function(t){t=a(t.target).data("action");"expand-all"===t&&a(".dd").nestable("expandAll"),"collapse-all"===t&&a(".dd").nestable("collapseAll")}),a("#nestable_list_3").nestable()},a.Nestable=new t,a.Nestable.Constructor=t}(window.jQuery),function(){"use strict";window.jQuery.Nestable.init()}();