mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 01:40:36 +00:00
Trivial cleanup
using `event.preventDefault` instead of `return false` for being more explicit
This commit is contained in:
parent
71cefc95ab
commit
ef8eef7519
1 changed files with 3 additions and 3 deletions
|
@ -726,7 +726,7 @@ function initIssue() {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
fileInput.addEventListener("change", function(event) {
|
fileInput.addEventListener("change", function() {
|
||||||
for (var index = 0; index < fileInput.files.length; index++) {
|
for (var index = 0; index < fileInput.files.length; index++) {
|
||||||
var file = fileInput.files[index];
|
var file = fileInput.files[index];
|
||||||
|
|
||||||
|
@ -752,9 +752,9 @@ function initIssue() {
|
||||||
this.value = "";
|
this.value = "";
|
||||||
});
|
});
|
||||||
|
|
||||||
$addButton.on("click", function() {
|
$addButton.on("click", function(evt) {
|
||||||
fileInput.click();
|
fileInput.click();
|
||||||
return false;
|
evt.preventDefault();
|
||||||
});
|
});
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue