Jump to content

cbox


test ipb3


iBotPeaches

Recommended Posts

Posted

test some code.

 

initEvents: function()
   {
       // Form validation
       if( $('postingform') ){
           $('postingform').observe('submit', ipb.post.postFormSubmit);
       }
       
       if( $('open_emoticons') ){
           $('open_emoticons').observe('click', ipb.post.toggleEmoticons);
       }
       
       if( $('post_options_options') && $('toggle_post_options') ){
           $('toggle_post_options').update( ipb.lang['click_to_show_opts'] );
           $('toggle_post_options').observe('click', ipb.post.showOptions );
       }
       
       // Add calendars
       if( $('mod_open_date') && $('mod_open_date_icon') ){
           $('mod_open_date_icon').observe('click', function(){
               new CalendarDateSelect( $('mod_open_date'), { year_range: 6, close_on_click: true } );
           });
       }
       if( $('mod_close_date') && $('mod_close_date_icon') ){
           $('mod_close_date_icon').observe('click', function(){
               new CalendarDateSelect( $('mod_close_date'), { year_range: 6, close_on_click: true } );
           });
       }
       
       if( $('post_preview' ) ){
           // Resize images
           ipb.global.findImgs( $( 'post_preview' ) );
       }
       
       // Image resizing for topic summary
       if( $('topic_summary') ){
           ipb.global.findImgs( $('topic_summary') );
       }

       if( $('review_topic') ){
           $('review_topic').observe('click', ipb.global.openNewWindow.bindAsEventListener( this, $('review_topic'), 1 ) );
       }
   },

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...