diff --git a/.jshintrc b/.jshintrc index bca48639a70..510726ee46b 100644 --- a/.jshintrc +++ b/.jshintrc @@ -4,7 +4,7 @@ "bitwise":false, "curly": true, "eqnull": true, - "globalstrict": true, + "strict": true, "devel": true, "eqeqeq": true, "forin": false, @@ -12,7 +12,7 @@ "supernew": true, "expr": true, "indent": 2, - "latedef": true, + "latedef": false, "newcap": true, "noarg": true, "noempty": true, diff --git a/docker/blocks/prometheus/prometheus.yml b/docker/blocks/prometheus/prometheus.yml index b0fc2a919cd..5c853622af3 100644 --- a/docker/blocks/prometheus/prometheus.yml +++ b/docker/blocks/prometheus/prometheus.yml @@ -23,4 +23,4 @@ scrape_configs: # scheme defaults to 'http'. target_groups: - - targets: ['localhost:9090', '172.17.42.1:9091'] + - targets: ['localhost:9090', '172.17.0.1:9091'] diff --git a/package.json b/package.json index 73312eed646..a0b883fb463 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "grunt-contrib-copy": "~0.8.2", "grunt-contrib-cssmin": "~0.14.0", "grunt-contrib-htmlmin": "~0.6.0", - "grunt-contrib-jshint": "~0.11.3", + "grunt-contrib-jshint": "~1.0.0", "grunt-contrib-less": "~0.7.0", "grunt-contrib-uglify": "~0.11.0", "grunt-contrib-watch": "^0.6.1", @@ -39,7 +39,7 @@ "grunt-tslint": "^3.0.2", "grunt-typescript": "^0.8.0", "grunt-usemin": "3.0.0", - "jshint-stylish": "~0.1.5", + "jshint-stylish": "~2.1.0", "karma": "~0.13.15", "karma-chrome-launcher": "~0.2.2", "karma-coverage": "0.5.3", diff --git a/public/app/core/directives/value_select_dropdown.js b/public/app/core/directives/value_select_dropdown.js index 656804a72d3..60d257d6fa8 100644 --- a/public/app/core/directives/value_select_dropdown.js +++ b/public/app/core/directives/value_select_dropdown.js @@ -179,8 +179,7 @@ function (angular, _, coreModule) { vm.variable.current.text = _.pluck(vm.selectedValues, 'text').join(' + '); vm.variable.current.tags = vm.selectedTags; - // only single value - if (vm.selectedValues.length === 1) { + if (!vm.variable.multi) { vm.variable.current.value = vm.selectedValues[0].value; } diff --git a/public/app/features/dashboard/partials/import.html b/public/app/features/dashboard/partials/import.html index d1f028f7222..3f23e4cb682 100644 --- a/public/app/features/dashboard/partials/import.html +++ b/public/app/features/dashboard/partials/import.html @@ -15,26 +15,24 @@ -