function VisibleMessage(text, name, messageType) {
    var self = this;

    self.text = text;
    self.name = name;
    self.type = ko.observable(messageType || CinchApp.messageTypes.normal);
    self.cssClass = ko.computed(function() {
        return self.type() === CinchApp.messageTypes.error ? 'error-msg' : '';
    });
}
//Represents a single message from an entity
Represents a single message from an entity
Represents a single message from an entity
function VisibleMessage(text, name, messageType) {
    var self = this;
    self.text = text;
    self.name = name;
    self.type = ko.observable(messageType || CinchApp.messageTypes.normal);
    self.cssClass = ko.computed(function() {
        return self.type() === CinchApp.messageTypes.error ? 'error-msg' : '';
    });
}
function VisibleMessage ( text , name , messageType ) { var self = this ; self . text = text ; self . name = name ; self . type = ko . observable ( messageType || CinchApp . messageTypes . normal ) ; self . cssClass = ko . computed ( function ( ) { return self . type ( ) === CinchApp . messageTypes . error ? 'error-msg' : '' ; } ) ; }
Represents a single message from an entity
Represents a single message from an entity