Move error indicators on message bubbles
// FREEBIE
This commit is contained in:
parent
5340791868
commit
28c763992a
4 changed files with 92 additions and 82 deletions
|
@ -56,12 +56,12 @@
|
|||
renderErrors: function() {
|
||||
var errors = this.model.get('errors');
|
||||
if (_.size(errors) > 0) {
|
||||
this.$('.bubble').addClass('error');
|
||||
this.$el.addClass('error');
|
||||
if (this.model.isIncoming()) {
|
||||
this.$('.content').text(this.model.getDescription()).addClass('error-message');
|
||||
}
|
||||
} else {
|
||||
this.$('.bubble').removeClass('error');
|
||||
this.$el.removeClass('error');
|
||||
}
|
||||
},
|
||||
renderControl: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue