From: sushantpaste Date: Tue, 22 Apr 2014 04:44:25 +0000 (+0530) Subject: Create new location button fixes for event location X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=162b0ed4ec5ee6b7dff8a91a37112a15c089d724;p=civicrm-core.git Create new location button fixes for event location --- diff --git a/templates/CRM/Event/Form/ManageEvent/Location.tpl b/templates/CRM/Event/Form/ManageEvent/Location.tpl index 3d07aecc6a..fba092d0db 100644 --- a/templates/CRM/Event/Form/ManageEvent/Location.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Location.tpl @@ -146,6 +146,12 @@ function showLocFields( ) { var useExisting = document.getElementsByName("location_option")[1].checked; if ( createNew ) { cj('#existingLoc').hide(); + //clear all location fields values. + cj("input[id *= 'address_1_']").val(""); + cj("input[id *= 'email_1_']").val(""); + cj("input[id *= 'phone_1_']").val(""); + //reset country/state. + cj("select[id *= 'address_1_']").val(""); displayMessage(false); } else if ( useExisting ) { cj('#existingLoc').show();