aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 22:34:17 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 22:34:17 +0000
commit2da8c3e8428f09bab7aefa39cadc0a4f2d6f7a80 (patch)
treea29bd9de401337c69575b402793d0a8bef1f32e7 /js/lib
parente99c8b979a149dc6693b0e82762a9ca550ece86b (diff)
downloadelgg-2da8c3e8428f09bab7aefa39cadc0a4f2d6f7a80.tar.gz
elgg-2da8c3e8428f09bab7aefa39cadc0a4f2d6f7a80.tar.bz2
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
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/ui.widgets.js7
1 files changed, 5 insertions, 2 deletions
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'),