aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 15:35:14 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 15:35:14 +0000
commit078d930d12f450f32f1b7d1976e5d3fe0aa01808 (patch)
tree5fc29b3cde5c9f84902851739b907697dbd8b81d /js
parent95c79a67493521d2d9761fde60ccfbf2af48ce87 (diff)
downloadelgg-078d930d12f450f32f1b7d1976e5d3fe0aa01808.tar.gz
elgg-078d930d12f450f32f1b7d1976e5d3fe0aa01808.tar.bz2
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
Diffstat (limited to 'js')
-rw-r--r--js/lib/ui.widgets.js2
1 files changed, 1 insertions, 1 deletions
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'),