aboutsummaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-28 14:31:30 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-28 14:31:30 +0000
commitad0dc7563b9e50cf14137e331af3240a570a9d8f (patch)
tree10fcf322fc39cfafb56aad1cd5134541ff85ddee /javascript
parentf65a509ffa3b06552fae35fd7ba1c3ce83773452 (diff)
downloadelgg-ad0dc7563b9e50cf14137e331af3240a570a9d8f.tar.gz
elgg-ad0dc7563b9e50cf14137e331af3240a570a9d8f.tar.bz2
new 3 column widget gallery (needs wiring up), profile page profile box alignment sorted, topbar menu tweaked and image added,
git-svn-id: https://code.elgg.org/elgg/trunk@1558 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'javascript')
-rw-r--r--javascript/initialise_elgg.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/javascript/initialise_elgg.js b/javascript/initialise_elgg.js
index 220c19c6b..1ba222e0f 100644
--- a/javascript/initialise_elgg.js
+++ b/javascript/initialise_elgg.js
@@ -31,7 +31,7 @@ $(document).ready(function () {
//////////////////
// WIDGET GALLERY
// sortable widgets
- var els = ['#main_widgets', '#rightsidebar_widgets', '#widget_picker_gallery'];
+ var els = ['#leftcolumn_widgets', '#middlecolumn_widgets', '#rightcolumn_widgets', '#widget_picker_gallery' ];
var $els = $(els.toString());
$els.sortable({
@@ -45,14 +45,14 @@ $(document).ready(function () {
connectWith: els,
start:function(e,ui) {
// prevent droppable drop function from running when re-sorting main lists
- //$('#rightsidebar_widgets').droppable("disable");
- //$('#main_widgets').droppable("disable");
+ //$('#middlecolumn_widgets').droppable("disable");
+ //$('#leftcolumn_widgets').droppable("disable");
},
stop: function(e,ui) {
// refresh list before updating hidden fields with new widget order
$(this).sortable( "refresh" );
- var widgetNameRight = outputWidgetList('#rightsidebar_widgets');
- var widgetNameMain = outputWidgetList('#main_widgets');
+ var widgetNameRight = outputWidgetList('#middlecolumn_widgets');
+ var widgetNameMain = outputWidgetList('#leftcolumn_widgets');
document.getElementById('debugField1').value = widgetNameMain;
document.getElementById('debugField2').value = widgetNameRight;
}
@@ -63,11 +63,15 @@ $(document).ready(function () {
widget_moreinfo();
// setup hover class for dragged widgets
- $("#rightsidebar_widgets").droppable({
+ $("#rightcolumn_widgets").droppable({
accept: ".draggable_widget",
hoverClass: 'droppable-hover'
});
- $("#main_widgets").droppable({
+ $("#middlecolumn_widgets").droppable({
+ accept: ".draggable_widget",
+ hoverClass: 'droppable-hover'
+ });
+ $("#leftcolumn_widgets").droppable({
accept: ".draggable_widget",
hoverClass: 'droppable-hover'
});