Browse Source

fix bug when pack js (#8992)

for-closed-social
Lunny Xiao 5 years ago
committed by Lauris BH
parent
commit
9bd879bef8
4 changed files with 6 additions and 6 deletions
  1. +1
    -1
      public/js/index.js
  2. +1
    -1
      public/js/index.js.map
  3. +1
    -1
      templates/repo/issue/view_content/sidebar.tmpl
  4. +3
    -3
      web_src/js/index.js

+ 1
- 1
public/js/index.js
File diff suppressed because it is too large
View File


+ 1
- 1
public/js/index.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
templates/repo/issue/view_content/sidebar.tmpl View File

@ -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}}

+ 3
- 3
web_src/js/index.js View File

@ -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');

Loading…
Cancel
Save