This commit is contained in:
@@ -24,30 +24,30 @@ app.ops = (function() {
|
||||
///////////////////////////////
|
||||
//ONUPDATE
|
||||
//
|
||||
// onChangePassword = function(event) {
|
||||
// event.preventDefault();
|
||||
// $.gevent.publish("app-clear-error");
|
||||
// //get form data
|
||||
// var formData = $("form").serializeArray({
|
||||
// checkboxesAsBools: true
|
||||
// });
|
||||
// onChangePassword = function(event) {
|
||||
// event.preventDefault();
|
||||
// $.gevent.publish("app-clear-error");
|
||||
// //get form data
|
||||
// var formData = $("form").serializeArray({
|
||||
// checkboxesAsBools: true
|
||||
// });
|
||||
|
||||
// var submitData = app.utilB.objectifyFormDataArray(formData);
|
||||
// var submitData = app.utilB.objectifyFormDataArray(formData);
|
||||
|
||||
// app.api.create(
|
||||
// "user/" + app.shell.stateMap.user.id + "/changepassword",
|
||||
// submitData,
|
||||
// function(res) {
|
||||
// if (res.error) {
|
||||
// $.gevent.publish("app-show-error", res.msg);
|
||||
// } else {
|
||||
// page("#!/logout");
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
// app.api.create(
|
||||
// "user/" + app.shell.stateMap.user.id + "/changepassword",
|
||||
// submitData,
|
||||
// function(res) {
|
||||
// if (res.error) {
|
||||
// $.gevent.publish("app-show-error", res.msg);
|
||||
// } else {
|
||||
// page("#!/logout");
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
|
||||
// return false; //prevent default?
|
||||
// };
|
||||
// return false; //prevent default?
|
||||
// };
|
||||
//-------------------- END EVENT HANDLERS --------------------
|
||||
|
||||
//------------------- BEGIN PUBLIC METHODS -------------------
|
||||
@@ -69,7 +69,7 @@ app.ops = (function() {
|
||||
$container.html(Handlebars.templates["app.ops"]({}));
|
||||
|
||||
// bind actions
|
||||
// $("#btn-change-password").bind("click", onChangePassword);
|
||||
// $("#btn-change-password").bind("click", onChangePassword);
|
||||
|
||||
//Context menu
|
||||
app.nav.contextClear();
|
||||
@@ -78,18 +78,18 @@ app.ops = (function() {
|
||||
if (res.error) {
|
||||
$.gevent.publish("app-show-error", res.msg);
|
||||
} else {
|
||||
$("#about").append(
|
||||
"<p>Ops status response: " +
|
||||
res +
|
||||
"</p>"
|
||||
);
|
||||
if (res.opsCheckMessage) {
|
||||
$("#about").append("<p>Ops status response: " + res.opsCheckMessage + "</p>");
|
||||
}
|
||||
|
||||
//set classes
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//{"mailMirrorOK":true,"forumOK":true,"ayaNovaWebsiteOK":true,"apiWebsiteOK":true,"contactFormOK":true,"requestFormOK":true,"requestLiteFormOK":true,"subversionOK":true,"devOpsOK":true,"backupOK":true,"opsCheckMessage":""}
|
||||
|
||||
////app.nav.setContextTitle("Search");
|
||||
//{"mailMirrorOK":true,"forumOK":true,"ayaNovaWebsiteOK":true,"apiWebsiteOK":true,"contactFormOK":true,"requestFormOK":true,"requestLiteFormOK":true,"subversionOK":true,"devOpsOK":true,"backupOK":true,"opsCheckMessage":""}
|
||||
//icons: alert for bad, check-circle for good
|
||||
};
|
||||
|
||||
//PUBLIC METHODS
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
<div>
|
||||
<h2>OPS</h2>
|
||||
<div class="alert alert-success mb-5" id="about" />
|
||||
<div id="statuslist">
|
||||
|
||||
<form id="frm" method="post" action="index.html">
|
||||
<h4 id="ayanovasite>
|
||||
<i class="mdi mdi-check-circle mdi-36px"></i>
|
||||
AyaNova site
|
||||
</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="oldpassword">Change password</label>
|
||||
<input class="form-control" type="text" id="oldpassword" name="oldpassword" placeholder="current password" value="">
|
||||
<input class="form-control" type="text" id="newpassword" name="newpassword" placeholder="new password" value="">
|
||||
<div class="app-frm-buttons mt-5">
|
||||
<button id="btn-change-password">Update</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<h4>
|
||||
<i class="mdi mdi-alert mdi-36px"></i>
|
||||
API site
|
||||
</h4>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user