From d1d82adca1dbb02382d7ccf49b8830816e8fa00f Mon Sep 17 00:00:00 2001 From: yehudah Date: Mon, 19 Aug 2019 20:57:47 +0000 Subject: Security issues --- script/postman.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'script') diff --git a/script/postman.js b/script/postman.js index edd33ac..696414a 100644 --- a/script/postman.js +++ b/script/postman.js @@ -1,6 +1,15 @@ jQuery(document).ready(function($) { $( ".email-log-date" ).datepicker(); + $('.post-smtp-reset-options').on('submit', function(e) { + var result = confirm('Are you sure?'); + + if ( ! result ) { + e.preventDefault(); + return false; + } + }); + $('.notice-dismiss.postman-release-message').on('click', function() { var $this = $(this); var args = { -- cgit v1.2.3