Skip to content

Instantly share code, notes, and snippets.

@biniama
Created March 18, 2015 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biniama/52ba2b8b7b4e07827d0d to your computer and use it in GitHub Desktop.
Save biniama/52ba2b8b7b4e07827d0d to your computer and use it in GitHub Desktop.
<script>
$(document).ready(function(){
// Updating Profile
$('#editProfile').click(function(){
// show the update button div
$('#updateProfileDiv').show();
// hide the edit button div
$('#editProfileDiv').hide();
});
});
</script>
<g:form>
<div id="updateProfileDiv" style="display:none">
<fieldset class="buttons">
<g:hiddenField name="id" value="${customerInstance?.id}" />
<g:submitButton class="edit" name="updateProfile"
value="${message(code: 'admin.customer.profile.update.profile.button.label', default: 'Update Profile')}"/>
</fieldset>
</div>
</g:form>
<div id="editProfileDiv">
<fieldset class="buttons">
<g:submitButton class="edit" id="editProfile" name="editProfile"
value="${message(code: 'admin.customer.profile.edit.profile.button.label', default: 'Edit Profile')}"/>
</fieldset>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment