summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/index.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2015-12-16 21:10:33 -0800
committerNOYB <Al_Stu@Frontier.com>2015-12-16 21:10:33 -0800
commita508c6e4024039f7526b85ef368eb350e435cde4 (patch)
treeadf1b9f6bb27bbce8878d4271606501452ab4667 /src/usr/local/www/index.php
parent9851ce32c1c40281fd76ac1ff140acaccbcc1d30 (diff)
downloadpfsense-a508c6e4024039f7526b85ef368eb350e435cde4.zip
pfsense-a508c6e4024039f7526b85ef368eb350e435cde4.tar.gz
HTML Compliance - Dashboard
Rename duplicate id's. Fix available widgets collapsible section href with id. Where obsolete replace name attribute with id. The .panel-footer requires mod to the widgets with config options. So will submit separate commit so it can be handled independently. Bad value #widget-system_information .panel-footer for attribute href on element a: Illegal character in fragment: not a URL code point.
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r--src/usr/local/www/index.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index 214f129..45b44c7 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -308,19 +308,19 @@ pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard");
<div class="panel panel-default" id="widget-available">
<div class="panel-heading"><?=gettext("Available Widgets"); ?>
<span class="widget-heading-icon">
- <a data-toggle="collapse" href="#widget-available .panel-body" name="widgets-available">
+ <a data-toggle="collapse" href="#widget-available_panel-body" id="widgets-available">
<i class="fa fa-plus-circle"></i>
</a>
</span>
</div>
- <div class="panel-body collapse out">
+ <div id="widget-available_panel-body" class="panel-body collapse out">
<div class="content">
<div class="row">
<?php
foreach ($widgets as $widgetname => $widgetconfig):
if ($widgetconfig['display'] == 'none'):
?>
- <div class="col-sm-3"><a href="#" name="btnadd-<?=$widgetname?>"><i class="fa fa-plus"></i> <?=$widgetconfig['name']?></a></div>
+ <div class="col-sm-3"><a href="#" id="btnadd-<?=$widgetname?>"><i class="fa fa-plus"></i> <?=$widgetconfig['name']?></a></div>
<?php endif; ?>
<?php endforeach; ?>
</div>
@@ -351,7 +351,7 @@ foreach ($widgets as $widgetname => $widgetconfig):
</div>
<div class="hidden" id="widgetSequence">
- <form action="/" method="post" id="widgetSequence" name="widgetForm">
+ <form action="/" method="post" id="widgetSequence_form" name="widgetForm">
<input type="hidden" name="sequence" value="" />
<button type="submit" id="btnstore" class="btn btn-primary">Store widget configuration</button>
@@ -448,7 +448,7 @@ function updateWidgets(newWidget) {
}
$('#widgetSequence').removeClass('hidden');
- $('input[name=sequence]', $('#widgetSequence')).val(sequence);
+ $('input[name=sequence]', $('#widgetSequence_form')).val(sequence);
}
events.push(function() {
@@ -470,9 +470,9 @@ events.push(function() {
});
// On clicking a widget to install . .
- $('[name^=btnadd-]').click(function(event) {
+ $('[id^=btnadd-]').click(function(event) {
// Add the widget name to the list of displayed widgets
- updateWidgets(this.name.replace('btnadd-', ''));
+ updateWidgets(this.id.replace('btnadd-', ''));
// We don't want to see the "Store" button because we are doing that automatically
$('#btnstore').hide();
OpenPOWER on IntegriCloud