diff --git a/app/assets/javascripts/services/queriesSvc.js b/app/assets/javascripts/services/queriesSvc.js index f3acf9ea5..439c4f2c7 100644 --- a/app/assets/javascripts/services/queriesSvc.js +++ b/app/assets/javascripts/services/queriesSvc.js @@ -232,9 +232,6 @@ angular.module('QuepidApp') self.modified = queryWithRatings.updated_at; - // Threshold properties - self.threshold = queryWithRatings.threshold; - self.thresholdEnabled = queryWithRatings.threshold_enabled; // Error self.errorText = ''; @@ -631,29 +628,6 @@ angular.module('QuepidApp') }); }; - this.setThreshold = function(enabled, threshold) { - var that = this; - var url = 'api/cases/' + caseNo + '/queries/' + that.queryId + '/threshold'; - var thresholdJson = { - query: { - threshold: threshold, - threshold_enbl: enabled - } - }; - - return $http.put(url, thresholdJson) - .then(function() { - that.threshold = threshold; - that.thresholdEnabled = enabled; - }, function(response) { - $log.debug('Failed to set threshold: ', response); - return response; - }).catch(function(response) { - $log.debug('Failed to set threshold'); - return response; - }); - }; - this.reset = function() { this.errorText = ''; resultsReturned = false; diff --git a/app/assets/templates/views/searchResults.html b/app/assets/templates/views/searchResults.html index 339f11046..a22b9e66c 100644 --- a/app/assets/templates/views/searchResults.html +++ b/app/assets/templates/views/searchResults.html @@ -35,27 +35,13 @@

- - - - {{query.threshold}} - - - - - - - - - -
Score All @@ -90,8 +76,6 @@

-