From 3e5ef37ee8817232556ad15ba48c1bd940101e25 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Fri, 16 Jan 2009 00:55:36 +0000 Subject: Make admin dashboard blocks draggable. Updated order and position not yet saved. --- themes/admin_default/js/ui.init.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (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 c6256d5d..68c6398d 100644 --- a/themes/admin_default/js/ui.init.js +++ b/themes/admin_default/js/ui.init.js @@ -29,4 +29,25 @@ $(document).ready(function(){ $("#gMessage").append("" + body.message + ""); } }}); + + // Sortable dashboard blocks + $("#gContent").sortable({ + connectWith: ["#gSidebar"], + cursor: "move", + opacity: 0.7, + placeholder: "gBlock", + update: function(){ + console.log($(this).sortable("serialize")); + } + }); + $("#gSidebar").sortable({ + connectWith: ["#gContent"], + containment: "document", + cursor: "move", + opacity: 0.7, + placeholder: "gBlock", + update: function(){ + console.log($(this).sortable("serialize")); + } + }); }); -- cgit v1.2.3