summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2009-01-16 00:55:36 +0000
committerChad Kieffer <chad@2tbsp.com>2009-01-16 00:55:36 +0000
commit3e5ef37ee8817232556ad15ba48c1bd940101e25 (patch)
tree6e4255fbb65872602a1f439657c38406acf6c7a2
parente4a9b19bf9997f46203fbc18c696c63703a72625 (diff)
Make admin dashboard blocks draggable. Updated order and position not yet saved.
-rw-r--r--themes/admin_default/js/ui.init.js21
1 files changed, 21 insertions, 0 deletions
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("<span class='gError'>" + body.message + "</span>");
}
}});
+
+ // 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"));
+ }
+ });
});