From 078d930d12f450f32f1b7d1976e5d3fe0aa01808 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 20 Nov 2010 15:35:14 +0000 Subject: Refs #472 not allowing widgets to be added if only single instance allowed git-svn-id: http://code.elgg.org/elgg/trunk@7384 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/lib/ui.widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/lib') diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js index ebece5a59..73b7f46cc 100644 --- a/js/lib/ui.widgets.js +++ b/js/lib/ui.widgets.js @@ -33,7 +33,7 @@ elgg.ui.widgets.init = function() { event.preventDefault(); }); - $('.widgets_add_panel a').bind('click', function(event) { + $('.widgets_add_panel li.widget_available').bind('click', function(event) { elgg.action('widgets/add', { data: { handler: $(this).attr('id'), -- cgit v1.2.3