diff --git a/emhttp/plugins/dynamix/include/Boot.php b/emhttp/plugins/dynamix/include/Boot.php index 682fbb14d..15f436cbd 100644 --- a/emhttp/plugins/dynamix/include/Boot.php +++ b/emhttp/plugins/dynamix/include/Boot.php @@ -57,12 +57,12 @@ var boot = new NchanSubscriber('/sub/var',{subscriber:'websocket'}); boot.on('message', function(msg) { var ini = parseINI(msg); switch (ini['fsState']) { - case 'Stopped' : var status = "=_('Array Stopped')?>"; break; - case 'Started' : var status = "=_('Array Started')?>"; break; - case 'Formatting': var status = "=_('Array Started')?>•=_('Formatting device(s)')?>"; break; - default : var status = ""+_('Array '+ini['fsState'])+""; + case 'Stopped' : var status = '=_('Array Stopped')?>'; break; + case 'Started' : var status = '=_('Array Started')?>'; break; + case 'Formatting': var status = '=_('Array Started')?>•=_('Formatting device(s)')?>'; break; + default : var status = ''+_('Array '+ini['fsState'])+''; } - if (ini['fsProgress']) status += "•"+_(ini['fsProgress'])+""; + if (ini['fsProgress']) status += '•'+_(ini['fsProgress'])+''; $('.sub1').html(status); }); @@ -158,7 +158,7 @@ $(document).ajaxSend(function(elm, xhr, s){ $safemode = '/boot/unraidsafemode'; -$progress = (_var($var,'fsProgress')!='') ? "•{$var['fsProgress']}" : ""; +$progress = (_var($var,'fsProgress')!='') ? '•'.$var['fsProgress'].'' : ''; switch (_var($_POST,'cmd','shutdown')) { case 'reboot': @@ -176,13 +176,13 @@ echo '
'; echo '