Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30035, comment 4


Ignore:
Timestamp:
11/26/2014 04:24:59 PM (10 years ago)
Author:
ericlewis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30035, comment 4

    initial v1  
    11attachment:30035.mov shows what putting a button in the Publish meta box does.
    22
    3 Clicking our button adds [https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-admin/js/post.js?annotate=blame#L432 the callback] that's only intended for the submit button, so when Preview button is clicked, this callback runs unintentionally, and disables the submit buttons.
     3Clicking our button adds [https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-admin/js/post.js?annotate=blame#L432 the callback] that's only intended only to be added when the submit button is clicked, so when Preview button is clicked, this callback runs unintentionally, and disables the submit buttons.