Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Add update of expire value #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/partials/upload.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions frontend/scripts/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ angular.module('imgbi.controllers', [])
$location.path('/uploaded');
}
};

$scope.updateexpire = function(expire) {
$rootScope.expire = expire;
};
}
])
.controller('uploaded', [
Expand Down