summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/index.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-20 09:42:11 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-20 09:42:36 -0500
commitf4a15d29b86804467ac19c0d74410dd3ab6acc18 (patch)
tree3f382ad002d44256acf145c307236a44b3b17e1d /src/usr/local/www/index.php
parentbe472219c6a761b97bce686e6316285066bcb5ba (diff)
downloadpfsense-f4a15d29b86804467ac19c0d74410dd3ab6acc18.zip
pfsense-f4a15d29b86804467ac19c0d74410dd3ab6acc18.tar.gz
Completed #5499
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r--src/usr/local/www/index.php12
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();
OpenPOWER on IntegriCloud