mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +02:00
Fixes #4041 - SEF Generation confirmation 'cancel' option was being ignored. Also, confirmation will now only appear if the current sef is not empty.
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user