Skip to content
Snippets Groups Projects
Commit 4ee79047 authored by colemanw's avatar colemanw
Browse files

Fix confirm msg CRM-12254

parent a96556af
Branches
Tags
No related merge requests found
......@@ -5,14 +5,14 @@
}
function showDeleteAttachment( fileName, postURLData, fileID, divName, divFile ) {
var confirmMsg = '{/literal}{ts escape="js"}Are you sure you want to delete attachment: {/ts}{literal}' + fileName + '&nbsp; <a href="#" onclick="deleteAttachment( \'' + postURLData + '\',' + fileID + ',\'' + divName + '\', \'' + divFile + '\' ); return false;" style="text-decoration: underline;">{/literal}{ts escape='js'}Yes{/ts}{literal}</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="hideStatusAttachment( divName ); return false;" style="text-decoration: underline;">{/literal}{ts escape='js'}No{/ts}{literal}</a>';
var confirmMsg = '<div>{/literal}{ts escape="js"}Are you sure you want to delete attachment: {/ts}{literal}' + fileName + '&nbsp; <a href="#" onclick="deleteAttachment( \'' + postURLData + '\',' + fileID + ',\'' + divName + '\', \'' + divFile + '\' ); return false;" style="text-decoration: underline;">{/literal}</div><div>{ts escape='js'}Yes{/ts}{literal}</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="hideStatusAttachment( \'' + divName + '\' ); return false;" style="text-decoration: underline;">{/literal}{ts escape='js'}No{/ts}{literal}</a></div>';
cj( divName ).show( ).html( confirmMsg );
}
function deleteAttachment( postURLData, fileID, divName, divFile ) {
var postUrl = {/literal}"{crmURL p='civicrm/file/delete' h=0 }"{literal};
cj.ajax({
type: "GET",
type: "POST",
data: postURLData,
url: postUrl,
success: function(html){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment