Prune unused argument from updateQuery function

See a36f784f

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/1495/head
Alex Coles 11 years ago
parent 610fe56b5d
commit 13e24a0c09
  1. 3
      app/assets/javascripts/angular/controllers/dialogs/settings.js
  2. 2
      public/templates/work_packages/modals/settings.html

@ -44,9 +44,8 @@ angular.module('openproject.workPackages.controllers')
this.name = 'Settings'; this.name = 'Settings';
this.closeMe = settingsModal.deactivate; this.closeMe = settingsModal.deactivate;
$scope.queryName = query.name; $scope.queryName = query.name;
$scope.deleteQuery = false;
$scope.updateQuery = function(deleteQuery) { $scope.updateQuery = function() {
query.name = $scope.queryName; query.name = $scope.queryName;
QueryService.saveQuery() QueryService.saveQuery()
.then(function(data){ .then(function(data){

@ -14,7 +14,7 @@
</div> </div>
<div> <div>
<button class="button_highlight" <button class="button_highlight"
ng-click="updateQuery(deleteQuery)" ng-click="updateQuery()"
ng-disabled="modalSettingsForm.$invalid">{{ I18n.t('js.modals.button_submit') }}</button> ng-disabled="modalSettingsForm.$invalid">{{ I18n.t('js.modals.button_submit') }}</button>
<button class="button" ng-click="modal.closeMe()">{{ I18n.t('js.modals.button_cancel') }}</button> <button class="button" ng-click="modal.closeMe()">{{ I18n.t('js.modals.button_cancel') }}</button>
</div> </div>

Loading…
Cancel
Save