From b128ec82c4bd149beb6f4436b030e288ae75fb1d Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 17 Nov 2010 22:08:39 +0000 Subject: Refs #1793 - added a basic add new widgets view - it is not wired up yet git-svn-id: http://code.elgg.org/elgg/trunk@7333 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/lib/ui.widgets.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/lib/ui.widgets.js') diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js index cf13d6e95..f4fa4b256 100644 --- a/js/lib/ui.widgets.js +++ b/js/lib/ui.widgets.js @@ -9,6 +9,12 @@ elgg.ui.widgets.init = function() { placeholder: 'widget_placeholder' }); + $('#widget_add_button a').bind('click', function(event) { + $('.widgets_add').slideToggle('medium'); + event.preventDefault(); + }); + + }; //List active widgets for each page column -- cgit v1.2.3