diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-20 09:42:11 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-20 09:42:36 -0500 |
commit | f4a15d29b86804467ac19c0d74410dd3ab6acc18 (patch) | |
tree | 3f382ad002d44256acf145c307236a44b3b17e1d /src | |
parent | be472219c6a761b97bce686e6316285066bcb5ba (diff) | |
download | pfsense-f4a15d29b86804467ac19c0d74410dd3ab6acc18.zip pfsense-f4a15d29b86804467ac19c0d74410dd3ab6acc18.tar.gz |
Completed #5499
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/index.php | 12 |
1 files changed, 3 insertions, 9 deletions
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' - <?php $widgets[widgetToAdd]['display'] = '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(); |