|
|
@ -621,11 +621,9 @@ function initIssue() { |
|
|
|
// Upload.
|
|
|
|
// Upload.
|
|
|
|
(function() { |
|
|
|
(function() { |
|
|
|
var $attachedList = $("#attached-list"); |
|
|
|
var $attachedList = $("#attached-list"); |
|
|
|
var $addButton = $("#attachments-button"); |
|
|
|
var $addButton = $("#attachments-button"); |
|
|
|
|
|
|
|
var files = []; |
|
|
|
var files = []; |
|
|
|
var fileInput = document.getElementById("attachments-input"); |
|
|
|
|
|
|
|
|
|
|
|
var fileInput = document.getElementById("attachments-input"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (fileInput === null) { |
|
|
|
if (fileInput === null) { |
|
|
|
return; |
|
|
|
return; |
|
|
@ -638,7 +636,7 @@ function initIssue() { |
|
|
|
$parent.remove(); |
|
|
|
$parent.remove(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
var clickedButton = undefined; |
|
|
|
var clickedButton; |
|
|
|
|
|
|
|
|
|
|
|
$('#issue-reply-btn,input[type="submit"]', fileInput.form).on('click', function() { |
|
|
|
$('#issue-reply-btn,input[type="submit"]', fileInput.form).on('click', function() { |
|
|
|
clickedButton = this; |
|
|
|
clickedButton = this; |
|
|
@ -651,7 +649,7 @@ function initIssue() { |
|
|
|
$button.text("Submiting..."); |
|
|
|
$button.text("Submiting..."); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
fileInput.form.addEventListener("submit", function(event) { |
|
|
|
fileInput.form.addEventListener("submit", function(event) { |
|
|
|
event.stopImmediatePropagation(); |
|
|
|
event.stopImmediatePropagation(); |
|
|
|
event.preventDefault(); |
|
|
|
event.preventDefault(); |
|
|
|
|
|
|
|
|
|
|
|