This commit is contained in:
antelle 2019-08-18 08:09:42 +02:00
parent fa4ff0b0c3
commit 3e3d3571be
2 changed files with 9 additions and 8 deletions

View File

@ -146,7 +146,9 @@ module.exports = function(grunt) {
eslint: {
app: ['app/scripts/**/*.js'],
desktop: ['desktop/**/*.js', '!desktop/node_modules/**'],
grunt: ['Gruntfile.js', 'build/**/*.js']
build: ['Gruntfile.js', 'grunt.*.js', 'build/**/*.js', 'webpack.config.js'],
plugins: ['plugins/**/*.js'],
util: ['util/**/*.js']
},
inline: {
app: {

View File

@ -53,13 +53,12 @@ const MenuModel = Backbone.Model.extend({
}
]);
Colors.AllColors.forEach(color => {
this.colorsSection
.get('items')
.models[0].addOption({
cls: 'fa ' + color + '-color',
value: color,
filterValue: color
});
const option = {
cls: 'fa ' + color + '-color',
value: color,
filterValue: color
};
this.colorsSection.get('items').models[0].addOption(option);
});
this.menus.app = new MenuSectionCollection([
this.allItemsSection,