aboutsummaryrefslogblamecommitdiffstats
path: root/public/assets/refinery/sortable_menu-fad5918a2dd61d8815ba575b06833a27.js
blob: ec300c18b6bae65f2f20d650c57d1ef1d8bd27d9 (plain) (tree)
1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
(function(){this.init_sortable_menu=function(){var e;if(0!==(e=$("#menu")).length)return e.sortable({items:"> *:not(#menu_reorder, #menu_reorder_done)",axis:"x",cursor:"crosshair",connectWith:".nested",update:function(){return $.post("/refinery/update_menu_positions",e.sortable("serialize",{key:"menu[]",expression:/plugin_([\w]*)$/}))}}).tabs(),e.sortable("disable"),e.find("#menu_reorder").click(function(e){return trigger_reordering(e,!0)}),e.find("#menu_reorder_done").click(function(e){return trigger_reordering(e,!1)})}}).call(this);