|
|
@ -98,7 +98,7 @@ module.exports = Backbone.View.extend({ |
|
|
* @param {Event} e |
|
|
* @param {Event} e |
|
|
* @private |
|
|
* @private |
|
|
* */ |
|
|
* */ |
|
|
updateStatus(e) { |
|
|
updateStatus(opts = {}) { |
|
|
const em = this.em; |
|
|
const em = this.em; |
|
|
const el = this.el; |
|
|
const el = this.el; |
|
|
const status = this.model.get('status'); |
|
|
const status = this.model.get('status'); |
|
|
@ -127,15 +127,12 @@ module.exports = Backbone.View.extend({ |
|
|
cls = `${actualCls} ${freezedCls} ${selectedCls}`; |
|
|
cls = `${actualCls} ${freezedCls} ${selectedCls}`; |
|
|
break; |
|
|
break; |
|
|
case 'hovered': |
|
|
case 'hovered': |
|
|
cls = `${actualCls} ${hoveredCls}`; |
|
|
cls = !opts.avoidHover ? `${actualCls} ${hoveredCls}` : ''; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
cls = cls.trim(); |
|
|
cls = cls.trim(); |
|
|
|
|
|
cls && el.setAttribute('class', cls); |
|
|
if (cls) { |
|
|
|
|
|
el.setAttribute('class', cls); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|