mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
web interface: fix setting expiration date
editor autoformatting changed the meaning of the code
This commit is contained in:
@@ -211,11 +211,11 @@
|
||||
}
|
||||
});
|
||||
|
||||
{ { if gt.User.ExpirationDate 0 } }
|
||||
{{ if gt .User.ExpirationDate 0 }}
|
||||
var input_dt = moment({{.User.ExpirationDate }}).format('YYYY-MM-DD');
|
||||
$('#idExpirationDate').val(input_dt);
|
||||
$('#expirationDatePicker').datetimepicker('viewDate', input_dt);
|
||||
{ { end } }
|
||||
{{ end }}
|
||||
|
||||
$("#user_form").submit(function (event) {
|
||||
var dt = $('#idExpirationDate').val();
|
||||
|
||||
Reference in New Issue
Block a user