diff options
Diffstat (limited to 'plugins/public-post-preview/js/public-post-preview.js')
-rw-r--r-- | plugins/public-post-preview/js/public-post-preview.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/public-post-preview/js/public-post-preview.js b/plugins/public-post-preview/js/public-post-preview.js index e25a188e..d35e962d 100644 --- a/plugins/public-post-preview/js/public-post-preview.js +++ b/plugins/public-post-preview/js/public-post-preview.js @@ -47,9 +47,8 @@ post_ID : $( '#post_ID' ).val() }, function( data ) { - // data is '1' if it's a successful request - if ( data ) { - if ( checked ) { + if ( data.success ) { + if ( 'true' === checked ) { t.status.text( DSPublicPostPreviewL10n.enabled ); t._pulsate( t.status, 'green' ); } else { |