[-] BO : #PSFV-600 - Fix bug with Controller::addJqueryUI

This commit is contained in:
mDeflotte
2012-03-01 17:05:49 +00:00
parent c1a9ed16ab
commit 301a95e9a3
2 changed files with 16 additions and 17 deletions
+8 -7
View File
@@ -301,14 +301,15 @@ abstract class ControllerCore
public function addJqueryUI($component, $theme = 'base', $check_dependencies = true)
{
$ui_path = array();
if (is_array($component))
foreach ($component as $ui)
$ui_path = Media::getJqueryUIPath($ui, $theme, $check_dependencies);
else
$ui_path = Media::getJqueryUIPath($component, $theme, $check_dependencies);
if (!is_array($component))
$component = array($component);
$this->addCSS($ui_path['css']);
$this->addJS($ui_path['js']);
foreach ($component as $ui)
{
$ui_path = Media::getJqueryUIPath($ui, $theme, $check_dependencies);
$this->addCSS($ui_path['css']);
$this->addJS($ui_path['js']);
}
}
/**