jQuery UI 选项卡jQuery 工具选项卡 (Flowplayer) 冲突
我和这里的人遇到了完全相同的问题。 我知道如何解决它。您应该在 jQuery Tools.js 中更改以下内容,对吧?
find:
$.fn.tabs = function(query, conf) {
更改为这样的内容:
$.fn.fpTabs = function(query, conf) {
我的问题是我在任何地方都找不到该行,即使使用编辑器的搜索功能也找不到! 我已经下载了 Flowplayer.org 的 jQuery 工具的最新版本,并将其上传到 Pastebin: http://pastebin.com/ ispnQMVH 你能帮我弄清楚如何做到这一点吗?
如果有其他方法可以防止 jQuery-ui 选项卡推断 jQuery 工具选项卡,请告诉我:)
提前非常感谢!
I have exactly the same problem as the person here.
I know how to solve it. You're supposed to change the following in the jQuery Tools.js, right?
find:
$.fn.tabs = function(query, conf) {
change to something like this:
$.fn.fpTabs = function(query, conf) {
My problem is that I just can't find that line anywhere, not even with the search function of my editor!!
I've downloaded the newest version of Flowplayer.org's jQuery Tools and I uploaded it to pastebin: http://pastebin.com/ispnQMVH
Can you help me figure out how to do this?
If there's a nother way to prevent jQuery-ui tabs to inferfere with jQuery Tools tabs, then please let me know :)
Thanks a lot in advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将其作为答案,因为评论中会一片混乱。
看起来你可以从 Github 获取未缩小的源代码:
您还可以尝试快速修改选项卡插件原地。如果您加载 jQuery Tools Tabs JavaScript 文件,然后加载一个像这样的小修补程序:
然后加载 jQuery-UI:
当然,您必须更改名称,但如果您按上述顺序加载内容,它应该可以工作。
I'm putting this down as an answer because it would be a mess in a comment.
Looks like you can grab the unminified source from Github:
You could also try a quick hack to rename the tabs plugin in situ. If you load the jQuery Tools Tabs JavaScript file, then load a little patcher like this:
and then load jQuery-UI:
You'll have to change the names of course but it should work if you load things in the above order.