[wp-trac] [WordPress Trac] #35176: Update button should be disabled if there haven't been any changes.

WordPress Trac noreply at wordpress.org
Tue Dec 22 00:37:36 UTC 2015


#35176: Update button should be disabled if there haven't been any changes.
---------------------------+---------------------------------
 Reporter:  EmpireOfLight  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Editor         |     Version:  4.4
 Severity:  normal         |  Resolution:
 Keywords:  close          |     Focuses:  ui, administration
---------------------------+---------------------------------

Comment (by azaozz):

 Thinking this may be a "not-so-great" UI change. Two reasons:
 - The whole Edit Post screen still has the feel of a form, and the
 submit/save buttons on most forms are not disabled when the forms are
 "empty".
 - We can (probably) detect changes in all metaboxes (they are saved
 together with the post, see [#comment:2 comment 2]), but may miss changes
 to elements added by plugins, especially when done with JS. For example:
 {{{
 jQuery( '#post' ).submit( function() {
   if ( [some condition] ) {
     jQuery( '.my-field', this ).val( 'My Value' );
   }
 });
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35176#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list