From 2e0685f678ecb55f79e99bd31c40a93467a16599 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 5 Apr 2013 15:53:22 -0700 Subject: [PATCH] Use CRM.alert for success msg --- templates/CRM/Form/attachmentjs.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Form/attachmentjs.tpl b/templates/CRM/Form/attachmentjs.tpl index 1f83b8030c..0c1dbcb382 100644 --- a/templates/CRM/Form/attachmentjs.tpl +++ b/templates/CRM/Form/attachmentjs.tpl @@ -17,9 +17,9 @@ url: postUrl, success: function(html){ var resourceBase = {/literal}"{$config->resourceBase}"{literal}; - var successMsg = '{/literal}{ts escape="js"}The selected attachment has been deleted.{/ts}{literal}   '; - cj( divFile ).hide( ); - cj( divName ).show( ).html( successMsg ); + var successMsg = '{/literal}{ts escape="js"}The selected attachment has been deleted.{/ts}{literal}'; + cj(divFile + ',' + divName).hide(); + CRM.alert(successMsg, '{/literal}{ts escape="js"}Removed{/ts}{literal}', 'success'); } }); } -- 2.25.1