jrails icon indicating copy to clipboard operation
jrails copied to clipboard

Conflict with jQuery Tools

Open cncolder opened this issue 16 years ago • 1 comments

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' }); });

cncolder avatar Nov 30 '09 06:11 cncolder

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.

nbarth avatar Mar 23 '10 20:03 nbarth