From 8ec0e8471f424ead77a335277d86706c4b6d3add Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 18 Jan 2009 09:06:46 +0000 Subject: Drag and drop in the admin dashboard now saves the location. * Make block_adder a real block * Suppress the "close" link on block_adder * Move the drag/drop JS into the core code out of the admin theme --- themes/admin_default/js/ui.init.js | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'themes/admin_default/js/ui.init.js') diff --git a/themes/admin_default/js/ui.init.js b/themes/admin_default/js/ui.init.js index 23d6cdea..e59a5a0b 100644 --- a/themes/admin_default/js/ui.init.js +++ b/themes/admin_default/js/ui.init.js @@ -30,28 +30,4 @@ $(document).ready(function(){ } } }); - - // Sortable dashboard blocks - if ($(".ui-dialog-titlebar-close").length) { - $(".gBlock *:first").addClass("gDraggable"); - $("#gContent").sortable({ - connectWith: ["#gSidebar"], - cursor: "move", - handle: $("div:first"), - opacity: 0.6, - placeholder: "gDropTarget", - update: function() { console.log($(this).sortable("serialize")); } - // @todo stop: function() { .ajax() } - }); - $("#gSidebar").sortable({ - connectWith: ["#gContent"], - containment: "document", - cursor: "move", - handle: $("div:first"), - opacity: 0.6, - placeholder: "gDropTarget", - update: function() { console.log($(this).sortable("serialize")); } - // @todo stop: function() { .ajax() } - }); - } }); -- cgit v1.2.3