summaryrefslogtreecommitdiff
path: root/themes/admin_default/js/ui.init.js
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-18 09:06:46 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-18 09:06:46 +0000
commit8ec0e8471f424ead77a335277d86706c4b6d3add (patch)
tree10ed731ec427af0982f2007ccdaeecdc685d06db /themes/admin_default/js/ui.init.js
parent9380e306f4e40da8f6d9a4e9cbe7231b7738ed60 (diff)
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
Diffstat (limited to 'themes/admin_default/js/ui.init.js')
-rw-r--r--themes/admin_default/js/ui.init.js24
1 files changed, 0 insertions, 24 deletions
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() }
- });
- }
});