},
showSuccess: function(result) {
+ result["success"] = "success";
if (this.logTableId) {
- result["success"] = "success";
this.appendLogWindow(result);
} else {
$(this.successBoxId).show();
},
showError: function(result) {
+ result["success"] = "failure";
if (this.logTableId) {
- result["success"] = "failure";
this.appendLogWindow(result);
} else {
$(this.errorBoxId).show();
},
showInformational: function(result) {
+ result["success"] = "information";
if (this.logTableId) {
- result["success"] = "information";
return this.appendLogWindow(result);
} else {
return undefined;
logTableBody = $(this.logTableId + " tbody");
logTableBody.prepend(newRow);
}
+
+ if (this.statusMsgId) {
+ $(this.statusMsgId).html( templateFromId("#xos-status-template")(result) );
+ }
+
return logMessageId;
},
XOSDetailView = Marionette.ItemView.extend({
tagName: "div",
- events: {"click button.js-submit": "submitClicked",
- "change input": "inputChanged"},
-
events: {"click button.js-submit": "submitClicked",
"change input": "inputChanged"},
},
submitClicked: function(e) {
+ console.log("submit clicked");
this.app.hideError();\r
e.preventDefault();\r
var infoMsgId = this.app.showInformational( {what: "save " + this.model.__proto__.modelName, status: "", statusText: "in progress..."} );\r