search for: addclass

Displaying 8 results from an estimated 8 matches for "addclass".

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
2011 Dec 05
9
jquery - word is not defined
...of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class So I''m using... app/assets/javascripts/people.js.coffee and put in... $(document).ready(function() { $(''tr:nth-child(odd)'').addClass(''odd''); }); and I get the error - word is not defined (in /home/users/cwhite/tti_framework/app/assets/javascripts/people.js.coffee) So I tried variations including $(document).ready(function() { $(''tr:odd'').addClass(''odd''); }); but still...
2005 Dec 27
9
2.6.14 - HTB/SFQ QoS broken?
...re then attached to this class. These leaf classes finally each receive a SFQ which serves the purpose of fair queueing AND giving a package queue to HTB so that it does not have to drop packets. Here is my implementation of it: IFUP=48kbps tc qdisc add ppp0 root handle 1:0 htb default 20 r2q 4 $addclass 1:0 classid $cMAIN htb rate $IFUP mtu 1492 $addclass parent $cMAIN classid $cEMULE htb rate 8kbps ceil $IFUP prio 4 $addclass parent $cMAIN classid $cAPACHE htb rate 32kbps ceil $IFUP prio 2 $addclass parent $cMAIN classid $cDEFAULT htb rate $IFUP burst 6k prio 1 $addqdisc parent $cEMULE...
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
...as apposed to an ActionController::Flash::FlashHash. As all other Ruby applications should be able to unmarshal a Hash, this will avoid the Marshal.load method in Rack::Session::Cookie from throwing a NameError exception. Signed-off-by: Ken Barber <ken@bob.sh> Add addgroup, addclass, listgroups, listclasses tasks for nodes Previously if a user wanted to use rake tasks to interrogate the dashboard about which groups or classes a node belonged to, they would be out of luck. Similarly, if a user wanted to add a class or group to a node without replacing the alrea...
2011 Dec 13
1
continuous jquery partial update
Rails 3.1.x - jquery drag_drop.js $(function() { $( "[id^=moveable]" ).draggable(); $( "#droppable2" ).droppable({ drop: function( event, ui ) { $( this ) .addClass( "ui-state-highlight" ) $.post( "groups/add_member/", { "add": ui.draggable.text() }, function(data) { $(''#member_management'').html(data) } ); } }); }); The controller does "render :partial => ''memberships'&...
2012 Jan 05
8
js update partial missing template
PermissionsController def add_member ...snip... @permissions = Permission.all respond_to do |format| format.html { flash[:messages1] = @permission.user.name + " has been given rights." } format.js end end app/views/permissions/add_member.js.erb $(''#privileges'').replaceWith("<%=
2009 Sep 30
8
Cycle/Partials issue
First off, I''m fairly new to ruby on rails so this may appear simple but I''m just learning the ropes :) So I have a simple blog app where a post has many comments. The ''show'' view for posts renders a partial for each comment the post has. The css class of the containing div element is cycled using cycle(). The partial code is, <% div_for(comment, :class
2011 Oct 21
20
How to transform my html form into a rails 3 form
...r1 = "tr.show1,tr.show2" %> <% @filter2 = "tr.show1" %> <% @filter3 = "tr.show2" %> <form> <p> <input type="checkbox" value=<%=@filter1%> onclick="$ (this).is('':checked'') && $(this.value).addClass(''hidden'') || $ (this.value).removeClass(''hidden'');">Filter1<br/> <input type="checkbox" value=<%=@filter2%> onclick="$ (this).is('':checked'') && $(this.value).addClass(''hidden'') ||...