search for: toggleclass

Displaying 5 results from an estimated 5 matches for "toggleclass".

2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
...m::STATE_RUNNING %> @@ -103,7 +112,11 @@ ${htmlList(pools, id)} channel: 'STORAGE_VOLUME', refresh: VmCreator.returnToVmForm }); + + $('#vm_form .form_heading').bind('click', function(e){ + if(this === e.target){ + $(this).toggleClass('open').toggleClass('closed').next().slideToggle('slow'); + } + }); }); </script> - - diff --git a/src/public/stylesheets/components.css b/src/public/stylesheets/components.css index 41ad3d0..074cc09 100644 --- a/src/public/stylesheets/components.cs...
2012 Oct 31
5
css background not showing
Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; I''ve got this in my posts.js coffee file $ -> $(''.post'').hover (event) -> $(this).toggleClass("hover") and my index is <% @posts.each do |post| %> <div class="post"> <strong><%= post.title %></strong> <p><%= post.content %></p> <div class="meta"> <%= link_to time_ago_in_words(post.created_at) + "...
2009 Sep 23
0
[PATCH server] consolidated network & routing info ui's
...work_type").change(function () { @@ -43,4 +53,9 @@ $("#network_type").change(function () { $("#vlan_options").hide(); } }).trigger('change'); +$('#network_form .form_heading').bind('click', function(e){ + if(this === e.target){ + $(this).toggleClass('open').toggleClass('closed').next().slideToggle('slow'); + } +}); </script> diff --git a/src/app/views/network/_ip_address_form.rhtml b/src/app/views/network/_ip_address_form.rhtml index a3b3a95..0abc6d9 100644 --- a/src/app/views/network/_ip_address_form.rhtml +++...
2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
...iv> + <% else %> &nbsp;<b>No networks available</b> <% end %> + <div style="clear:both;"></div> <div class="clear_row"></div> @@ -134,189 +166,152 @@ ${htmlList(pools, id)} $(this).toggleClass('open').toggleClass('closed').next().slideToggle('slow'); } }); - }); /////////////////////////////////////////////////// vm networks config - // number of rows which we are currently displaying in net config - var vm_network_config_rows =...
2009 Feb 26
7
javascript using jQuery.js and prototype.js doesnt work 2get
Hi........ M hving javascript "scripts.js" which uses jQuery.js in rails application. bt when it is used along with prototype.js, one of the javascripts which hs been included first in my application.rhtml fails... Do some1 hv any solution how to make both the scripts work 2gether... I tried using <script> jQuery.noConflict(); </script> bt of no use. problem