Skip to content

Commit

Permalink
immediately publish issue on elementor
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvo7670 committed Sep 3, 2024
1 parent 2622ab2 commit 9e21de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/elementor-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@
}).on('click', '.wpsp-immediately-publish', function (e) {
e.preventDefault();
wpsp_date.clear();
wpsp_adv_date.clear();
if( typeof wpsp_adv_date.clear == 'function' ) {
wpsp_adv_date.clear();
}
wpsp_submit_button_text.text(label_publish);
$(this).addClass('active');
wpsp_submit_button_text.trigger('click', [$(this)]);
Expand Down

0 comments on commit 9e21de1

Please sign in to comment.