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.closeMe = settingsModal.deactivate;
$scope.queryName = query.name;
$scope.deleteQuery = false;
$scope.updateQuery = function(deleteQuery) {
$scope.updateQuery = function() {
query.name = $scope.queryName;
QueryService.saveQuery()
.then(function(data){

@ -14,7 +14,7 @@
</div>
<div>
<button class="button_highlight"
ng-click="updateQuery(deleteQuery)"
ng-click="updateQuery()"
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>
</div>

Loading…
Cancel
Save