[*] Classes : addJqueryUI automaticaly add css

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9089 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2011-10-06 09:51:37 +00:00
parent 05de006711
commit 6c7d1a5ee7
2 changed files with 32 additions and 6 deletions
+4 -1
View File
@@ -242,12 +242,15 @@ abstract class ControllerCore
*/
public function addJqueryUI($component)
{
$ui_path = array();
if (is_array($component))
foreach($component as $ui)
$ui_path = Media::getJqueryUIPath($ui);
else
$ui_path = Media::getJqueryUIPath($component);
$this->addJS($ui_path);
$this->addCSS($ui_path['css']);
$this->addJS($ui_path['js']);
}
/**