mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
Small whitespace cleanup
This commit is contained in:
parent
a447aecd95
commit
ef430ae7ab
1 changed files with 7 additions and 9 deletions
|
@ -621,11 +621,9 @@ function initIssue() {
|
|||
// Upload.
|
||||
(function() {
|
||||
var $attachedList = $("#attached-list");
|
||||
var $addButton = $("#attachments-button");
|
||||
|
||||
var files = [];
|
||||
|
||||
var fileInput = document.getElementById("attachments-input");
|
||||
var $addButton = $("#attachments-button");
|
||||
var files = [];
|
||||
var fileInput = document.getElementById("attachments-input");
|
||||
|
||||
if (fileInput === null) {
|
||||
return;
|
||||
|
@ -638,7 +636,7 @@ function initIssue() {
|
|||
$parent.remove();
|
||||
});
|
||||
|
||||
var clickedButton = undefined;
|
||||
var clickedButton;
|
||||
|
||||
$('#issue-reply-btn,input[type="submit"]', fileInput.form).on('click', function() {
|
||||
clickedButton = this;
|
||||
|
@ -651,7 +649,7 @@ function initIssue() {
|
|||
$button.text("Submiting...");
|
||||
});
|
||||
|
||||
fileInput.form.addEventListener("submit", function(event) {
|
||||
fileInput.form.addEventListener("submit", function(event) {
|
||||
event.stopImmediatePropagation();
|
||||
event.preventDefault();
|
||||
|
||||
|
|
Loading…
Reference in a new issue