[wp-trac] [WordPress Trac] #9881: Can't toggle the visibilty using jQuery anymore

WordPress Trac wp-trac at lists.automattic.com
Tue May 19 20:02:44 GMT 2009


#9881: Can't toggle the visibilty using jQuery anymore
--------------------------+-------------------------------------------------
 Reporter:  mcosx         |       Owner:  azaozz                  
     Type:  defect (bug)  |      Status:  new                     
 Priority:  normal        |   Milestone:  Unassigned              
Component:  JavaScript    |     Version:  2.8                     
 Severity:  normal        |    Keywords:  jQuery, WordPress plugin
--------------------------+-------------------------------------------------
 I was testing my plugin 'One Word A Day' in WP 2.8 and I cannot toggle the
 visibility of a div block anymore.

 This is the jQuery code ( Line 96: http://svn.wp-plugins.org/one-
 word-a-day/trunk/classes/class.widget.php ) :

    jQuery("#owad_post_settings").toggle("slow");

 and this is the div block:

    echo '<div id="owad_post_settings" style="';
         if( ! $options['owad_daily_post'] )
                 echo 'display:none;';
    echo '">';
   // some code with ending div tag

 I even couldn't save the plugin options. I saw that there is a multiple
 widget support for plugins so can't I use my old code anymore? What goes
 wrong?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9881>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list