From f27c8e401ec4673aae6fc5c395dd1e09a7835c9f Mon Sep 17 00:00:00 2001 From: Eileen <eileen@fuzion.co.nz> Date: Wed, 1 Jan 2014 23:29:22 +1300 Subject: [PATCH] Whitespace fixes (from jshint) --- CRM/Event/Form/ManageEvent/EventInfo.php | 2 +- templates/CRM/Event/Form/ManageEvent/EventInfo.tpl | 2 +- templates/CRM/Form/attachmentjs.tpl | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/EventInfo.php b/CRM/Event/Form/ManageEvent/EventInfo.php index 83b570356a..bfe32c7679 100644 --- a/CRM/Event/Form/ManageEvent/EventInfo.php +++ b/CRM/Event/Form/ManageEvent/EventInfo.php @@ -183,7 +183,7 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent { if (!CRM_Utils_System::isNull($eventTemplates)) { $this->add('select', 'template_id', ts('From Template'), array( '' => ts('- select -')) + $eventTemplates, - FALSE, array('onchange' => "reloadWindow( this.value );") + FALSE, array('onchange' => "reloadWindow(this.value);") ); } } diff --git a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl index 3135e0cb08..86df08880d 100644 --- a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl +++ b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl @@ -174,7 +174,7 @@ {literal} <script type="text/javascript"> -function reloadWindow( tempId ) { +function reloadWindow(tempId) { //ignore form navigation, CRM-6815 global_formNavigate = true; diff --git a/templates/CRM/Form/attachmentjs.tpl b/templates/CRM/Form/attachmentjs.tpl index 0c1dbcb382..046d0e89b8 100644 --- a/templates/CRM/Form/attachmentjs.tpl +++ b/templates/CRM/Form/attachmentjs.tpl @@ -4,18 +4,18 @@ cj( divName ).hide( ); } - function showDeleteAttachment( fileName, postURLData, fileID, divName, divFile ) { + function showDeleteAttachment(fileName, postURLData, fileID, divName, divFile) { var confirmMsg = '<div>{/literal}{ts escape="js"}Are you sure you want to delete attachment: {/ts}{literal}' + fileName + ' <a href="#" onclick="deleteAttachment( \'' + postURLData + '\',' + fileID + ',\'' + divName + '\', \'' + divFile + '\' ); return false;" style="text-decoration: underline;">{/literal}</div><div>{ts escape='js'}Yes{/ts}{literal}</a> <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 ); + cj(divName).show().html(confirmMsg); } - function deleteAttachment( postURLData, fileID, divName, divFile ) { + function deleteAttachment(postURLData, fileID, divName, divFile) { var postUrl = {/literal}"{crmURL p='civicrm/file/delete' h=0 }"{literal}; cj.ajax({ type: "POST", data: postURLData, url: postUrl, - success: function(html){ + 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 + ',' + divName).hide(); -- GitLab