upgraded angularjs from 1.5.5 to 1.6.9

The $https service deprecated the `success` method, so changed `success`
to `then`.

This will fix #528

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
This commit is contained in:
Ken Fukuyama 2018-02-23 23:05:17 +09:00 committed by Alex Ellis
parent 29bb3aa7c6
commit 365e348865
2 changed files with 7 additions and 7 deletions

View File

@ -172,10 +172,10 @@
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-messages.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-messages.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.4/angular-material.min.js"></script>
<script src="script/funcstore.js"></script>
<script src="script/bootstrap.js"></script>

View File

@ -91,9 +91,9 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md
}
$http(options)
.success(function (data, status, headers) {
var headerMap = headers();
.then(function (response) {
var data = response.data;
var status = response.status;
if($scope.invocation.contentType == "binary") {
var filename = uuidv4();