Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 3e26906

Browse files
committed
Disable save button after publish
1 parent 62c065c commit 3e26906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/customize-snapshots.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,10 @@
407407

408408
api.state( 'saved' ).bind( function( saved ) {
409409
if ( saved && ! _.isEmpty( component.schedule.container ) ) {
410+
component.data.dirty = false;
410411
component.data.publishDate = component.getCurrentTime();
411-
component.updateSchedule();
412412
component.scheduleContainerDisplayed.set( false );
413-
component.data.dirty = false;
413+
component.updateSchedule();
414414
}
415415
} );
416416

0 commit comments

Comments
 (0)