diff --git a/frontend/partials/upload.jade b/frontend/partials/upload.jade index c46eefe..40ffc35 100644 --- a/frontend/partials/upload.jade +++ b/frontend/partials/upload.jade @@ -15,7 +15,7 @@ .form-group .col-md-2.col-md-offset-8.control-label.text-muted(translate) Store for: .col-md-2 - select.form-control.input-sm(ng-model='expire') + select.form-control.input-sm(ng-model='expire', ng-change='updateexpire(expire)') option(value='1', translate) One day option(value='3', translate) Three days option(value='7', translate) One week diff --git a/frontend/scripts/controllers.js b/frontend/scripts/controllers.js index 0bebbc9..b1d86e4 100644 --- a/frontend/scripts/controllers.js +++ b/frontend/scripts/controllers.js @@ -162,6 +162,10 @@ angular.module('imgbi.controllers', []) $location.path('/uploaded'); } }; + + $scope.updateexpire = function(expire) { + $rootScope.expire = expire; + }; } ]) .controller('uploaded', [