diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index a7e5c87fa..eaae13b4a 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -5874,7 +5874,7 @@ var_dump($select_options);*/ $parms['tdClassRight'] = 'input-group'; } - $parms['post'] = "".LAN_GENERATE.""; + $parms['post'] = "".LAN_GENERATE.""; } if(!empty($parms['password'])) // password mechanism without the md5 storage. diff --git a/e107_web/js/core/admin.jquery.js b/e107_web/js/core/admin.jquery.js index f39f44a0d..e350f1674 100644 --- a/e107_web/js/core/admin.jquery.js +++ b/e107_web/js/core/admin.jquery.js @@ -811,6 +811,20 @@ $(document).ready(function() target = $(this).attr("data-target"); toconvert = $('#'+src).val(); script = window.location; + confirmation = $(this).attr("data-sef-generate-confirm"); + targetLength = $('#'+target).val().length ; + + if(confirmation !== undefined && targetLength > 0) + { + answer = confirm(confirmation); + + if(answer === false) + { + return; + } + } + + $.ajax({ type: "POST",