简体   繁体   English

Drupal:jquery更新模块…可以替换其中的jQuery文件吗?

[英]Drupal: jquery update module… is possible to replace jQuery files in it?

I'm using Drupal jquery_update module to use a more recent version of jQuery. 我正在使用Drupal jquery_update模块来使用最新版本的jQuery。

I've enabled the module and the jQuery file included in its folder is used. 我启用了该模块,并使用了其文件夹中包含的jQuery文件。 However it is still old: min.1.2.6.js 但是它仍然很旧:min.1.2.6.js

So, I've tried to replace it with min.1.3.2, by replacing the file in the jquery update module "replace/" folder. 因此,我尝试通过替换jquery更新模块“ replace /”文件夹中的文件,将其替换为min.1.3.2。

Unluckily I get some bugs in the the back-end, when I click on available updates, a lightbox is triggered. 不幸的是,当我单击可用更新时,在后端出现了一些错误,即触发了灯箱。 See picture: http://dl.dropbox.com/u/72686/drupal-LightBox.png 查看图片: http : //dl.dropbox.com/u/72686/drupal-LightBox.png

Is possible to use jQuery 1.3... (or even better 1.4) on Drupal 6 ? 是否可以在Drupal 6上使用jQuery 1.3 ...(甚至更好的1.4)?

thanks 谢谢

As specified on the jQuery Update module page , jQuery Update模块页面上所指定,

  • "Stock" Drupal 6.x “股票” Drupal 6.x
    • jQuery 1.2.x jQuery 1.2.x
  • jQuery Update 6.x-1.x jQuery更新6.x-1.x
    • jQuery 1.2.x (currently 1.2.6) jQuery 1.2.x(当前为1.2.6)
  • jQuery Update 6.x-2.x jQuery更新6.x-2.x
    • jQuery 1.3.x (currently 1.3.2) jQuery 1.3.x(当前为1.3.2)

If your Drupal core is up to date, 6.x-1.x won't do anything for you. 如果您的Drupal核心是最新的,则6.x-1.x不会为您做任何事情。 You'll have to install 6.x-2.x to update jQUery to 1.3.2. 您必须安装6.x-2.x才能将jQUery更新到1.3.2。 You can either install the latest alpha release or the latest development snapshot . 您可以安装最新的alpha版本最新的开发快照

如果您升级到jQuery 1.4+,则可能要按照以下链接中指定的说明在管理面板上禁用升级: 安装jQuery Update Module后修复Drupal管理面板

you also just replace the files in /modules/jquery_update/replace with whichever version you want to use. 您也只需将/ modules / jquery_update / replace中的文件替换为要使用的任何版本。 Just make sure to go to admin/settings/jquery_update and choose the type of file. 只需确保转到admin / settings / jquery_update并选择文件类型即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM