diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-15 01:58:32 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-11-14 19:58:32 +0200 |
commit | 9bd879bef85697e96f05371fbfef82273fc7e465 (patch) | |
tree | 13851186b768d8addec78b3455422034454ccec3 /web_src/js | |
parent | 856a9f81812083a0672a1b9f9b04304e3eaab0e8 (diff) | |
download | gitea-9bd879bef85697e96f05371fbfef82273fc7e465.tar.gz gitea-9bd879bef85697e96f05371fbfef82273fc7e465.zip |
fix bug when pack js (#8992)
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 900b5893a5..2edd70c87d 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1,6 +1,6 @@ /* globals wipPrefixes, issuesTribute, emojiTribute */ /* exported timeAddManual, toggleStopwatch, cancelStopwatch, initHeatmap */ -/* exported toggleDeadlineForm, setDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */ +/* exported toggleDeadlineForm, setDeadline, updateDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */ 'use strict'; function htmlEncode(text) { @@ -3276,10 +3276,10 @@ window.toggleDeadlineForm = function() { window.setDeadline = function() { const deadline = $('#deadlineDate').val(); - updateDeadline(deadline); + window.updateDeadline(deadline); } -function updateDeadline(deadlineString) { +window.updateDeadline = function(deadlineString) { $('#deadline-err-invalid-date').hide(); $('#deadline-loader').addClass('loading'); |