Skip to content

Instantly share code, notes, and snippets.

@stej
Created March 23, 2011 13:49
Show Gist options
  • Save stej/883107 to your computer and use it in GitHub Desktop.
Save stej/883107 to your computer and use it in GitHub Desktop.
<a href="#" class="delete" title="Delete - Deletes the item from the system. This will cancel all bla bla bla."
onclick="
var checked = true;
var checkUrl = '/cm/Product/294912/CheckDelete';
var data = {
__RequestVerificationToken : 'fI0pfQC+Ma7GEnqio5q1......',
id: 819200,
returnUrl: '......'
}
if (checkUrl != '') {
checked = $.he.jsonCheckAndShowErrors(
checkUrl,
data,
'Cannot Proceed'
);
}
if (checked) {
$.he.confirmDialog(
'/loc/Product/294912/',
data,
'Delete',
&quot;Do you really want to delete item\u0027XYZ\u0027?\&quot; Deleting it will cancel all bla bla bla.&quot;,
'Delete',
'Cancel'
);
}
return false;
">Delete</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment