humanReadableNames in logPanel
authorScott Baker <smbaker@gmail.com>
Fri, 21 Nov 2014 20:24:07 +0000 (12:24 -0800)
committerScott Baker <smbaker@gmail.com>
Fri, 21 Nov 2014 20:24:07 +0000 (12:24 -0800)
planetstack/core/xoslib/static/css/xosAdminDashboard.css
planetstack/core/xoslib/static/js/xoslib/xosHelper.js

index d94cb39..d707ffd 100644 (file)
 
 #logPanel {
     overflow-y: auto;
+    overflow-x: hidden;
 }
 
 #logTable {
     width: 100%;
+    white-space: nowrap;
 }
 
 #logTable tr {
index 99e47e7..dc11670 100644 (file)
@@ -205,27 +205,27 @@ XOSDetailView = Marionette.ItemView.extend({
             },\r
 \r
             saveError: function(model, result, xhr, infoMsgId) {\r
-                result["what"] = "save " + model.__proto__.modelName;\r
+                result["what"] = "save " + model.modelName + " " + model.attributes.humanReadableName;\r
                 result["infoMsgId"] = infoMsgId;\r
                 this.app.showError(result);\r
             },\r
 \r
             saveSuccess: function(model, result, xhr, infoMsgId) {\r
                 result = {status: xhr.xhr.status, statusText: xhr.xhr.statusText};\r
-                result["what"] = "save " + model.__proto__.modelName;\r
+                result["what"] = "save " + model.modelName + " " + model.attributes.humanReadableName;\r
                 result["infoMsgId"] = infoMsgId;\r
                 this.app.showSuccess(result);\r
             },
 
             destroyError: function(model, result, xhr, infoMsgId) {
-                result["what"] = "destroy " + model.__proto__.modelName;\r
+                result["what"] = "destroy " + model.modelName + " " + model.attributes.humanReadableName;\r
                 result["infoMsgId"] = infoMsgId;\r
                 this.app.showError(result);\r
             },\r
 \r
             destroySuccess: function(model, result, xhr, infoMsgId) {\r
                 result = {status: xhr.xhr.status, statusText: xhr.xhr.statusText};\r
-                result["what"] = "destroy " + model.__proto__.modelName;\r
+                result["what"] = "destroy " + model.modelName + " " + model.attributes.humanReadableName;\r
                 result["infoMsgId"] = infoMsgId;\r
                 this.app.showSuccess(result);\r
             },
@@ -252,7 +252,7 @@ XOSDetailView = Marionette.ItemView.extend({
 
             save: function() {
                 this.app.hideError();
-                var infoMsgId = this.app.showInformational( {what: "save " + this.model.__proto__.modelName, status: "", statusText: "in progress..."} );\r
+                var infoMsgId = this.app.showInformational( {what: "save " + model.modelName + " " + model.attributes.humanReadableName, status: "", statusText: "in progress..."} );\r
                 var data = Backbone.Syphon.serialize(this);\r
                 var that = this;\r
                 var isNew = !this.model.id;\r
@@ -268,7 +268,7 @@ XOSDetailView = Marionette.ItemView.extend({
 
             destroyModel: function() {
                  this.app.hideError();
-                 var infoMsgId = this.app.showInformational( {what: "destroy " + this.model.__proto__.modelName, status: "", statusText: "in progress..."} );
+                 var infoMsgId = this.app.showInformational( {what: "destroy " + model.modelName + " " + model.attributes.humanReadableName, status: "", statusText: "in progress..."} );
                  var that = this;
                  this.model.destroy({error: function(model, result, xhr) { that.destroyError(model,result,xhr,infoMsgId);},
                                      success: function(model, result, xhr) { that.destroySuccess(model,result,xhr,infoMsgId);}});