[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/js/meta_boxes/post/ -> drafts.js (source)

   1  //mp_meta_box_post_drafts
   2  
   3  jQuery(document).ready( function() {
   4  
   5      jQuery('#mpdraftchecklist').wpList( {
   6          alt: '',
   7          response: 'mpdraft-ajax-response',
   8          addBefore: function( s ) {
   9              if ( !jQuery('#newmpdraft').val() || jQuery('#mpdraft-'+jQuery('#newmpdraft').val()).length != 0 ) return false;
  10              s.data += '&newmpdraft_txt=' + jQuery('#newmpdraft-'+jQuery('#newmpdraft').val()).html() + '&post_id=' +  jQuery('#post_ID').val();
  11              return s;
  12          },
  13          delBefore: function( s ) {
  14              s.data.post_id = jQuery('#post_ID').val();
  15              return s;
  16          },
  17          delAfter:  function( r, settings ) {
  18              jQuery('#mpdraft-' + r).remove();
  19          }
  20      } );
  21  
  22      jQuery('#mpdraft-add-toggle').click( function() {
  23          jQuery('#mpdraft-adder').toggleClass( 'wp-hidden-children' );
  24          return false;
  25      } );
  26  });


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1