From 9c1ca0412bc94fa00494ce8bc46c6a8d4e66c4b2 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 19 Dec 2010 20:44:22 +0000 Subject: starting to use the grid in the widget code git-svn-id: http://code.elgg.org/elgg/trunk@7692 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/lib/ui.widgets.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/lib/ui.widgets.js') diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js index c33056d7c..141ea2d31 100644 --- a/js/lib/ui.widgets.js +++ b/js/lib/ui.widgets.js @@ -8,13 +8,13 @@ elgg.provide('elgg.ui.widgets'); elgg.ui.widgets.init = function() { // widget layout? - if ($(".widget-column").length == 0) { + if ($(".elgg-widgets").length == 0) { return; } - $(".widget-column").sortable({ + $(".elgg-widgets").sortable({ items: 'div.widget', - connectWith: '.widget-column', + connectWith: '.elgg-widgets', handle: 'div.drag-handle', forcePlaceholderSize: true, placeholder: 'widget-placeholder', @@ -34,7 +34,7 @@ elgg.ui.widgets.init = function() { $('.widget-edit > form ').submit(elgg.ui.widgets.saveSettings); $('a.widget-collapse-button').click(elgg.ui.widgets.collapseToggle); - elgg.ui.widgets.equalHeight(".widget-column"); + elgg.ui.widgets.equalHeight(".elgg-widgets"); }; /** -- cgit v1.2.3