// fix adminHome for Chart, js loading order in setMedia
This commit is contained in:
1 parent
71a2a66abc
commit
85d2f519c7
1 file changed
+3
-2
@@ -147,10 +147,10 @@ class AdminHomeControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
public function setMedia()
|
public function setMedia()
|
||||||
{
|
{
|
||||||
$this->addJS(_PS_JS_DIR_.'jquery/jquery.flot.min.js');
|
parent::setMedia();
|
||||||
if (strpos($_SERVER['HTTP_USER_AGENT'],'MSIE') !== false)
|
if (strpos($_SERVER['HTTP_USER_AGENT'],'MSIE') !== false)
|
||||||
$this->addJS(_PS_JS_DIR_.'jquery/excanvas.min.js');
|
$this->addJS(_PS_JS_DIR_.'jquery/excanvas.min.js');
|
||||||
parent::setMedia();
|
$this->addJS(_PS_JS_DIR_.'jquery/jquery.flot.min.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function warnDomainName()
|
protected function warnDomainName()
|
||||||
@@ -357,6 +357,7 @@ class AdminHomeControllerCore extends AdminController
|
|||||||
$chart->setSize(580, 170);
|
$chart->setSize(580, 170);
|
||||||
$chart->setTimeMode(strtotime('-7 DAYS', time()), time(), 'd');
|
$chart->setTimeMode(strtotime('-7 DAYS', time()), time(), 'd');
|
||||||
$chart->getCurve(1)->setLabel($this->l('Sales +Tx').' ('.strtoupper($currency->iso_code).')');
|
$chart->getCurve(1)->setLabel($this->l('Sales +Tx').' ('.strtoupper($currency->iso_code).')');
|
||||||
|
|
||||||
$this->content .= $chart->fetch();
|
$this->content .= $chart->fetch();
|
||||||
$this->content .= ' </div>
|
$this->content .= ' </div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user