Skip to content

Commit

Permalink
fix bug when pack js (#8992)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and lafriks committed Nov 14, 2019
1 parent 856a9f8 commit 9bd879b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/js/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/repo/issue/view_content/sidebar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
{{if and .IsIssueWriter (not .Repository.IsArchived)}}
<br/>
<a style="cursor:pointer;" onclick="window.toggleDeadlineForm();"><i class="edit icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_edit"}}</a> -
<a style="cursor:pointer;" onclick="updateDeadline('');"><i class="remove icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_remove"}}</a>
<a style="cursor:pointer;" onclick="window.updateDeadline('');"><i class="remove icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_remove"}}</a>
{{end}}
</p>
{{else}}
Expand Down
6 changes: 3 additions & 3 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 9bd879b

Please sign in to comment.