您的位置:首页 > Web前端 > JQuery

Latest dev renames all jquery ui effects files so they no longer match core and are not replaced

2014-12-05 16:52 525 查看
Not sure but #2040991:
jquery.effects.core.min.js is missing in the dev version doesn't seem to be complete solved. I updated to latest 7.x-2.x snapshot, and instead of getting the error message from #2040991:
jquery.effects.core.min.js is missing in the dev version, I now get the following error message:

file_get_contents(sites/all/modules/contrib/jquery_update/replace/ui/ui/minified/jquery.effects.highlight.min.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 of /includes/locale.inc).

Looking at the file names, it looks like this file has changed from "jquery.effects.highlight.min.js" to "jquery.ui.effect-highlight.min.js"

Which means there is a name mismatch between core and the latest dev:

$libraries['effects.highlight'] = array(

'title' => 'jQuery UI: Effects Highlight',

'website' => 'http://jqueryui.com/demos/effect/',

'version' => '1.8.7',

'js' => array(

'misc/ui/jquery.effects.highlight.min.js' => array(),

),

'dependencies' => array(

array('system', 'effects'),

),

);


Files:

I was able to fix this by adding the following line to function jquery_update_jqueryui_local(), just after the line that defines the $corefile;

$corefile = 'misc/ui/jquery.' . $file . '.min.js';

$file = str_replace('effects.', 'ui.effect-', $file);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐