mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-25 19:26:09 +01:00
fix bug when pack js (#8992)
This commit is contained in:
parent
856a9f8181
commit
9bd879bef8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -226,7 +226,7 @@
|
||||||
{{if and .IsIssueWriter (not .Repository.IsArchived)}}
|
{{if and .IsIssueWriter (not .Repository.IsArchived)}}
|
||||||
<br/>
|
<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="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}}
|
{{end}}
|
||||||
</p>
|
</p>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* globals wipPrefixes, issuesTribute, emojiTribute */
|
/* globals wipPrefixes, issuesTribute, emojiTribute */
|
||||||
/* exported timeAddManual, toggleStopwatch, cancelStopwatch, initHeatmap */
|
/* exported timeAddManual, toggleStopwatch, cancelStopwatch, initHeatmap */
|
||||||
/* exported toggleDeadlineForm, setDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */
|
/* exported toggleDeadlineForm, setDeadline, updateDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function htmlEncode(text) {
|
function htmlEncode(text) {
|
||||||
|
@ -3276,10 +3276,10 @@ window.toggleDeadlineForm = function() {
|
||||||
|
|
||||||
window.setDeadline = function() {
|
window.setDeadline = function() {
|
||||||
const deadline = $('#deadlineDate').val();
|
const deadline = $('#deadlineDate').val();
|
||||||
updateDeadline(deadline);
|
window.updateDeadline(deadline);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDeadline(deadlineString) {
|
window.updateDeadline = function(deadlineString) {
|
||||||
$('#deadline-err-invalid-date').hide();
|
$('#deadline-err-invalid-date').hide();
|
||||||
$('#deadline-loader').addClass('loading');
|
$('#deadline-loader').addClass('loading');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue