Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with jQuery Tools #9

Open
cncolder opened this issue Nov 30, 2009 · 1 comment
Open

Conflict with jQuery Tools #9

cncolder opened this issue Nov 30, 2009 · 1 comment

Comments

@cncolder
Copy link

jQuery Tool is a UI library.
http://flowplayer.org/tools/index.html

If I use jrails then some effects of jquery tools will not works.

eg. slide tabs.

= javascript_include_tag :default, "jquery.tools.min"

%ul.tabs
%li= link_to "first tab"
%li= link_to "second tab"
.panes
#first First tab content.
#second Second tab content.

:javascript
$(function() {
$("ul.tabs").tabs("div.panes > div", { effect: 'slide' });
});

@nbarth
Copy link

nbarth commented Mar 23, 2010

jrails.js overwrites some visual effects functions (blindUp, slideDown, etc.). If you don't want/need jrails to overwrite these, you can remove that section from jrails.js.

I split jrails.js into two files, jrails.forms.js (ajax extras and form extras) and jrails.visual.js (ajax extras and visual effects stubs). I included jrails.forms.js instead of the full jrails.js file, and got the functionality I needed without overwriting the jQuery visual functions I needed elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants