Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1293 from openhealthcare/352-our-progressbar-is-a…
…-liar 352 our progressbar is a liar
- Loading branch information
Showing
10 changed files
with
144 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 19 additions & 14 deletions
33
opal/core/search/static/js/search/controllers/save_filter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
angular.module('opal.controllers') | ||
.controller('SaveFilterCtrl', function($scope, $modalInstance, ngProgressLite, Filter, params) { | ||
$scope.model = params; | ||
$scope.model = params; | ||
|
||
$scope.save = function(result) { | ||
var filter = new Filter($scope.model); | ||
ngProgressLite.set(0); | ||
ngProgressLite.start(); | ||
filter.save($scope.model).then(function(result) { | ||
ngProgressLite.done(); | ||
$modalInstance.close(result); | ||
}); | ||
}; | ||
$scope.save = function(result) { | ||
var filter = new Filter($scope.model); | ||
ngProgressLite.set(0); | ||
ngProgressLite.start(); | ||
filter.save($scope.model).then( | ||
function(result) { | ||
ngProgressLite.done(); | ||
$modalInstance.close(result); | ||
}, | ||
function() { | ||
ngProgressLite.done(); | ||
} | ||
); | ||
}; | ||
|
||
|
||
$scope.cancel = function() { | ||
$modalInstance.close('cancel'); | ||
}; | ||
$scope.cancel = function() { | ||
$modalInstance.close('cancel'); | ||
}; | ||
|
||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters