From 82f78770cb8c6058bf506db617ed95c21e3c7b0a Mon Sep 17 00:00:00 2001 From: yehudah Date: Tue, 5 Dec 2017 21:53:16 +0000 Subject: * Welcome on activation * email log records per page * email logs trash all * remove gmail hosts for non gmail host --- script/feedback/feedback.js | 13 +++++++++++-- script/postman.js | 8 ++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'script') 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; -- cgit v1.2.3