[Bb-trac] Re: [bbPress] #851: JavaScript Error: favoritesToggle[1 === isFav ? "removeClass" : "addClass"] is not a function

bbPress bb-trac at lists.bbpress.org
Wed Apr 9 13:54:58 GMT 2008


#851: JavaScript Error: favoritesToggle[1 === isFav ? "removeClass" : "addClass"]
is not a function
-------------------------------------------------------------+--------------
 Reporter:  timskii                                          |        Owner:     
     Type:  defect                                           |       Status:  new
 Priority:  normal                                           |    Milestone:     
Component:  Front-end                                        |      Version:     
 Severity:  normal                                           |   Resolution:     
 Keywords:  Javascript, Ajax, favoritesToggle, topic-js.php  |  
-------------------------------------------------------------+--------------
Comment (by so1o):

 I fixed the error by adding

 `<?php bb_enqueue_script('jquery'); ?>`

 just before

 `<?php bb_enqueue_script('topic'); ?>`

 in header.php in the theme

-- 
Ticket URL: <http://trac.bbpress.org/ticket/851#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list