Skip to content

Commit 9bd879b

Browse files
lunnylafriks
authored andcommitted
fix bug when pack js (#8992)
1 parent 856a9f8 commit 9bd879b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

public/js/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/repo/issue/view_content/sidebar.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
{{if and .IsIssueWriter (not .Repository.IsArchived)}}
227227
<br/>
228228
<a style="cursor:pointer;" onclick="window.toggleDeadlineForm();"><i class="edit icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_edit"}}</a> -
229-
<a style="cursor:pointer;" onclick="updateDeadline('');"><i class="remove icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_remove"}}</a>
229+
<a style="cursor:pointer;" onclick="window.updateDeadline('');"><i class="remove icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_remove"}}</a>
230230
{{end}}
231231
</p>
232232
{{else}}

web_src/js/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* globals wipPrefixes, issuesTribute, emojiTribute */
22
/* exported timeAddManual, toggleStopwatch, cancelStopwatch, initHeatmap */
3-
/* exported toggleDeadlineForm, setDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */
3+
/* exported toggleDeadlineForm, setDeadline, updateDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */
44
'use strict';
55

66
function htmlEncode(text) {
@@ -3276,10 +3276,10 @@ window.toggleDeadlineForm = function() {
32763276

32773277
window.setDeadline = function() {
32783278
const deadline = $('#deadlineDate').val();
3279-
updateDeadline(deadline);
3279+
window.updateDeadline(deadline);
32803280
}
32813281

3282-
function updateDeadline(deadlineString) {
3282+
window.updateDeadline = function(deadlineString) {
32833283
$('#deadline-err-invalid-date').hide();
32843284
$('#deadline-loader').addClass('loading');
32853285

0 commit comments

Comments
 (0)