summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php
index ec23703..000f33f 100644
--- a/src/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/src/usr/local/www/widgets/widgets/system_information.widget.php
@@ -84,6 +84,9 @@ $sysinfo_items = array(
'disk_usage' => gettext('Disk Usage')
);
+// Declared here so that JavaScript can access it
+$updtext = sprintf(gettext("Obtaining update status %s"), "<i class='fa fa-cog fa-spin'></i>");
+
if ($_REQUEST['getupdatestatus']) {
require_once("pkg-utils.inc");
@@ -256,7 +259,7 @@ $rows_displayed = false;
<?php endif; ?>
<?php if (!isset($config['system']['firmware']['disablecheck'])): ?>
<br /><br />
- <div id='updatestatus'><?php echo gettext("Obtaining update status "); ?><i class="fa fa-cog fa-spin"></i></div>
+ <div id='updatestatus'><?=$updtext?></div>
<?php endif; ?>
</td>
</tr>
OpenPOWER on IntegriCloud