diff --git a/js/retro-compat.js.php b/js/retro-compat.js.php index 03a91e05f..e0af24935 100755 --- a/js/retro-compat.js.php +++ b/js/retro-compat.js.php @@ -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']); }