diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index 35adab008b..fa4b7c0593 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -1,5 +1,5 @@ add_linked_stylesheet("../css/login.css"); + $this->add_linked_stylesheet(utils::GetAbsoluteUrlAppRoot().'css/login.css'); } public static function SetLoginFailedMessage($sMessage) diff --git a/application/nicewebpage.class.inc.php b/application/nicewebpage.class.inc.php index acc4654766..c0e3e8aec3 100644 --- a/application/nicewebpage.class.inc.php +++ b/application/nicewebpage.class.inc.php @@ -1,5 +1,5 @@ m_aReadyScripts = array(); - $this->add_linked_script("../js/jquery-1.10.0.min.js"); - $this->add_linked_script("../js/jquery-migrate-1.2.1.min.js"); // Needed since many other plugins still rely on oldies like $.browser - $this->add_linked_stylesheet('../css/ui-lightness/jquery-ui-1.10.3.custom.min.css'); - $this->add_linked_script('../js/jquery-ui-1.10.3.custom.min.js'); - $this->add_linked_script("../js/hovertip.js"); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-1.10.0.min.js'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-migrate-1.2.1.min.js'); // Needed since many other plugins still rely on oldies like $.browser + $this->add_linked_stylesheet(utils::GetAbsoluteUrlAppRoot().'css/ui-lightness/jquery-ui-1.10.3.custom.min.css'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-ui-1.10.3.custom.min.js'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/hovertip.js'); // table sorting - $this->add_linked_script("../js/jquery.tablesorter.js"); - $this->add_linked_script("../js/jquery.tablesorter.pager.js"); - $this->add_linked_script("../js/jquery.tablehover.js"); - $this->add_linked_script('../js/field_sorter.js'); - $this->add_linked_script('../js/datatable.js'); - $this->add_linked_script("../js/jquery.positionBy.js"); - $this->add_linked_script("../js/jquery.popupmenu.js"); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.tablesorter.js'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.tablesorter.pager.js'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.tablehover.js'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/field_sorter.js'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/datatable.js'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.positionBy.js'); + $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.popupmenu.js'); $this->add_ready_script( <<< EOF //add new widget called TruncatedList to properly display truncated lists when they are sorted