[wp-trac] [WordPress Trac] #35176: Update button should be disabled if there haven't been any changes.
WordPress Trac
noreply at wordpress.org
Mon Dec 21 01:03:50 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: General | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by khag7):
Maybe something along the lines of this...
Add the "disabled" attribute to the Publish/Save button by default.
Then make some javascript like:
{{{
$('form#post').change( function(){
$('#publish').removeAttr('disabled');
});
}}}
Doesn't appear that editing the post content triggers a change event. Need
to get into the tinymce iframe somehow.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35176#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list