[FIX] mail: use _.str.startsWith (startsWith is ES6)

This commit is contained in:
Aaron Bohy
2017-04-11 19:44:38 +02:00
parent d7eb116fa8
commit abce447401
+1 -1
View File
@@ -201,7 +201,7 @@ var KanbanActivity = AbstractActivityField.extend({
var $span = this.$(".o_activity_btn > span");
$span.removeClass(function (index, classNames) {
return classNames.split(/\s+/).filter(function (className) {
return className.startsWith('o_activity_color_');
return _.str.startsWith(className, 'o_activity_color_');
}).join(' ');
});
$span.addClass('o_activity_color_' + (this.activity_state || 'default'));