Bug WISE-16 fixed. Backed completed.

This commit is contained in:
Paulo Gustavo Veiga
2014-01-09 22:38:59 -03:00
parent 86324c6873
commit 5f29024559
4 changed files with 63 additions and 5 deletions

View File

@@ -88,6 +88,18 @@
</fieldset>
</form>
</div>
<div class="tab-pane fade" id="deleteAccountPanel">
<div id="deleteAccountMsg" class="alert">
</div>
<form action="#" method="POST" id="deleteAccountForm">
<fieldset>
<label for="accountMarkedForDelete"><strong><spring:message code="NEW_PASSWORD"/>:</strong></label>
<input type="checkbox" name="confirmAccountDelete" id="confirmAccountDelete" required="required"/>
<input type="submit" id="deleteAccountBtn" class="btn btn-primary"
value="<spring:message code="DELETE__ACCOUNT"/>"/>
</fieldset>
</form>
</div>
</div>
</div>
@@ -95,6 +107,7 @@
$('#changePasswordMsg').hide();
$('#changeInfoMsg').hide();
$('#languageMsg').hide();
$('#deleteAccountMsg').hide();
function postChange(url, postBody, msgContainerId, successMsg) {
// Change success message ...
@@ -144,4 +157,14 @@
postChange("c/restful/account/locale", locale, 'languageMsg', "<spring:message code="INFO_UPDATE_SUCCESS"/>");
event.preventDefault();
});
$('#deleteAccountForm').submit(function (event) {
var locale = $('#deleteAccountForm option:selected').val();
postChange("c/restful/account/locale", locale, 'languageMsg', "<spring:message code="INFO_UPDATE_SUCCESS"/>");
event.preventDefault();
});
</script>