diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2017-12-05 21:53:16 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2017-12-05 21:53:16 +0000 |
commit | c524cfbee8ab1d21f1f68dccc837a4c343e10efb (patch) | |
tree | b33b8a3d3eb8eac9fe6f8272f62e626ea4de0623 /script | |
parent | b4ef3ff3cc3afb96ead86e8c99437d196477cb8d (diff) | |
download | Post-SMTP-c524cfbee8ab1d21f1f68dccc837a4c343e10efb.zip |
* Welcome on activation
* email log records per page
* email logs trash all
* remove gmail hosts for non gmail host
git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1781614 b8457f37-d9ea-0310-8a92-e5e31aec5664
Diffstat (limited to 'script')
-rw-r--r-- | script/feedback/feedback.js | 13 | ||||
-rw-r--r-- | script/postman.js | 8 |
2 files changed, 19 insertions, 2 deletions
diff --git a/script/feedback/feedback.js b/script/feedback/feedback.js index a151f3b..da94efc 100644 --- a/script/feedback/feedback.js +++ b/script/feedback/feedback.js @@ -80,11 +80,20 @@ jQuery(document).ready(function($) { $( '.postman-reason-input' ).hide(); if ( $( this ).hasClass( 'postman-custom-input' ) ) { - $( '#postman-deactivate-reasons' ).next( '.postman-reason-input' ).show(); + var reason = $(this).find('input').data('reason'); + var wrap = $( '#postman-deactivate-reasons' ).next( '.postman-reason-input' ); + var input = wrap.find('input'); + console.log(input); + + if ( reason ) { + input.attr('placeholder',reason); + } else { + input.attr('placeholder','Do you mind help and give more detailes?'); + } + wrap.show(); } if ( $( this ).hasClass( 'postman-support-input' ) ) { - console.log($(this)); $( this ).find( '.postman-reason-input' ).show(); } }); diff --git a/script/postman.js b/script/postman.js index c6c0e98..9c55b17 100644 --- a/script/postman.js +++ b/script/postman.js @@ -1,5 +1,13 @@ jQuery(document).ready(function($) { $( ".email-log-date" ).datepicker(); + + $('#postman_trash_all').on('click',function(e) { + if (confirm("Are You Sure?") == false) { + e.preventDefault(); + + return false; + } + }); }); var redirectUrlWarning = false; |