From 9192acf25025d2fa67f1a6a2d5b52112a372992f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 3 Mar 2015 10:20:52 +0100 Subject: [PATCH] Fixed js style errors --- src/app/features/dashboard/dashboardNavCtrl.js | 4 ++-- tasks/build_task.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/features/dashboard/dashboardNavCtrl.js b/src/app/features/dashboard/dashboardNavCtrl.js index 7066a982c99..9eb002ac499 100644 --- a/src/app/features/dashboard/dashboardNavCtrl.js +++ b/src/app/features/dashboard/dashboardNavCtrl.js @@ -73,7 +73,7 @@ function (angular, _, moment) { }; $scope.handleSaveDashError = function(err) { - if (err.data && err.data.status === "version-mismatch" ) { + if (err.data && err.data.status === "version-mismatch") { err.isHandled = true; $scope.appEvent('confirm-modal', { @@ -86,7 +86,7 @@ function (angular, _, moment) { }); } - if (err.data && err.data.status === "name-exists" ) { + if (err.data && err.data.status === "name-exists") { err.isHandled = true; $scope.appEvent('confirm-modal', { diff --git a/tasks/build_task.js b/tasks/build_task.js index 471056f576c..b295ca48506 100644 --- a/tasks/build_task.js +++ b/tasks/build_task.js @@ -5,6 +5,7 @@ module.exports = function(grunt) { grunt.registerTask('build', [ 'jshint:source', 'jshint:tests', + 'jscs', 'karma:test', 'clean:on_start', 'less:src', @@ -40,7 +41,7 @@ module.exports = function(grunt) { }); grunt.config('copy.backend_files', { expand: true, - src: ['conf/defaults.ini', 'vendor/**/*', 'scripts/*'], + src: ['conf/defaults.ini', 'conf/sample.ini', 'vendor/**/*', 'scripts/*'], options: { mode: true}, dest: '<%= tempDir %>' });