From f4a15d29b86804467ac19c0d74410dd3ab6acc18 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Fri, 20 Nov 2015 09:42:11 -0500 Subject: Completed #5499 --- src/usr/local/www/index.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 3bc0126..804dd7d 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -412,7 +412,7 @@ function updateWidgets(newWidget) }); if (typeof newWidget !== 'undefined') - sequence += newWidget + ':' + 'col2:close'; + sequence += newWidget + ':' + 'col2:open'; $('#widgetSequence').removeClass('hidden'); $('input[name=sequence]', $('#widgetSequence')).val(sequence); @@ -471,14 +471,8 @@ events.push(function() { // On clicking a widget to install . . $('[name^=btnadd-]').click(function(event) { - // Extract the widget name from the button name that got us here - var widgetToAdd = this.name.replace('btnadd-', ''); - - // Set its display type to 'close' - - - // Add it to the list of displayed widgets - updateWidgets(widgetToAdd); + // Add the widget name to the list of displayed widgets + updateWidgets(this.name.replace('btnadd-', '')); // We don't want to see the "Store" button because we are doing that automatically $('#btnstore').hide(); -- cgit v1.1