From 2da8c3e8428f09bab7aefa39cadc0a4f2d6f7a80 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 19 Nov 2010 22:34:17 +0000 Subject: improving interactions of widgets - containment wasn't working due to height issues git-svn-id: http://code.elgg.org/elgg/trunk@7353 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/lib/ui.widgets.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'js/lib/ui.widgets.js') diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js index bee4b2126..ac55d0e7f 100644 --- a/js/lib/ui.widgets.js +++ b/js/lib/ui.widgets.js @@ -12,6 +12,9 @@ elgg.ui.widgets.init = function() { handle: 'div.drag_handle', forcePlaceholderSize: true, placeholder: 'widget_placeholder', + //containment: '.widget_layout', + opacity: 0.8, + revert: 500, stop: function(event, ui) { elgg.action('widgets/move', { data: { @@ -26,11 +29,11 @@ elgg.ui.widgets.init = function() { }); $('#widget_add_button a').bind('click', function(event) { - $('.widgets_add').slideToggle('medium'); + $('.widgets_add_panel').slideToggle('medium'); event.preventDefault(); }); - $('.widgets_add a').bind('click', function(event) { + $('.widgets_add_panel a').bind('click', function(event) { elgg.action('widgets/add', { data: { handler: $(this).attr('id'), -- cgit v1.2.3