//
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10632 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -73,14 +73,14 @@ if (!array_key_exists($file, $plugins)) //check if file is a real prestashop nat
|
||||
else if ($file == 'jquery-ui-1.8.10.custom.min.js') //jquery-ui cannot be call directly, now to include query UI, use Media::addJqueryUI('component_name');
|
||||
{
|
||||
$html = '$(document).ready( function () {
|
||||
'.(_PS_MODE_DEV_ ? 'console.log(\'MODE DEV : This file : "jquery-ui-1.8.10.custom.min.js" cannot be call directly please use Media::addJqueryUI("component_name") \')' : '').'
|
||||
'.(_PS_MODE_DEV_ ? 'if (!$.browser.msie)console.log(\'MODE DEV : This file : "jquery-ui-1.8.10.custom.min.js" cannot be call directly please use Media::addJqueryUI("component_name") \')' : '').'
|
||||
});';
|
||||
$html .= file_get_contents($plugins[$file]['new_file']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$html = '$(document).ready( function () {
|
||||
'.(_PS_MODE_DEV_ ? 'console.log(\'MODE DEV : This file : "'.$file.'" has been moved to this folder '.$plugins[$file]['new_file'].' To include this plugin use Media::addJqueryPlugin("'.$plugins[$file]['name'].'")\')' : '').'
|
||||
'.(_PS_MODE_DEV_ ? 'if (!$.browser.msie)console.log(\'MODE DEV : This file : "'.$file.'" has been moved to this folder '.$plugins[$file]['new_file'].' To include this plugin use Media::addJqueryPlugin("'.$plugins[$file]['name'].'")\')' : '').'
|
||||
});';
|
||||
$html .= file_get_contents($plugins[$file]['new_file']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user