diff --git a/.jshintrc b/.jshintrc index 653deaac..6229613c 100644 --- a/.jshintrc +++ b/.jshintrc @@ -9,7 +9,7 @@ "immed": true, "latedef": "nofunc", "plusplus": false, - "newcap": true, + "newcap": false, "noarg": true, "quotmark": "single", "regexp": true, @@ -22,6 +22,7 @@ "angular": false, "define": false, "alert": false, - "confirm": false + "confirm": false, + "self": false } } diff --git a/src/js/modules/projections/controllers/ProjectionsItemDebugCtrl.js b/src/js/modules/projections/controllers/ProjectionsItemDebugCtrl.js index c8447d22..cf607b98 100644 --- a/src/js/modules/projections/controllers/ProjectionsItemDebugCtrl.js +++ b/src/js/modules/projections/controllers/ProjectionsItemDebugCtrl.js @@ -242,7 +242,7 @@ define(['./_module'], function (app) { $scope.update = function () { $scope.isUpdating = true; - projectionsService.updateQuery($scope.location, $scope.query) + projectionsService.updateQuery($scope.location, null, $scope.query) .success(function () { msg.info('Projection Updated'); $window.location.reload(); diff --git a/src/js/modules/projections/services/ProjectionsService.js b/src/js/modules/projections/services/ProjectionsService.js index a9aadeb1..83f40c39 100644 --- a/src/js/modules/projections/services/ProjectionsService.js +++ b/src/js/modules/projections/services/ProjectionsService.js @@ -186,10 +186,9 @@ define(['./_module'], function (app) { }, updateQuery: function (url, emit, source) { - if(source) { + if(emit) { url = urlBuilder.simpleBuild(urls.projections.updateQuery, url) + emit; } else { - source = emit; url = urlBuilder.simpleBuild(urls.projections.updatePlainQuery, url); }