To delete a post or lock a post, you must enter the reason for rejection, share a window, and bind a button to a different event:
Title = 'delete a post (blocked or not displayed )';
Copy codeThe Code is as follows:
$ ('# Btn_ OK', '# div_deny_reason'). bind ('click', function () {edit ('If _ show ', '0 ');});
Title = 'Post locked ';
$ ('# Btn_ OK', '# div_deny_reason'). bind ('click', function () {edit ('If _ lock', '1 ');});
Result: After the post is locked, the post is deleted and the edit () operation is performed twice.
Just change it to the following:
Copy codeThe Code is as follows:
Title = 'delete a post (blocked or not displayed )';
$ ('# Btn_ OK', '# div_deny_reason'). one ('click', function () {edit ('If _ show ', '0 ');});
Title = 'Post locked ';
$ ('# Btn_ OK', '# div_deny_reason'). one ('click', function () {edit ('If _ lock', '1 ');});