mirror of
https://github.com/leoherzog/TorrentParts.git
synced 2026-01-24 04:08:04 -08:00
Remove Listener Now That We're Modifying Hash
This commit is contained in:
@@ -11944,7 +11944,6 @@ function start() {
|
|||||||
comment.addEventListener('input', propertyChange);
|
comment.addEventListener('input', propertyChange);
|
||||||
|
|
||||||
if (window.location.hash) parse(window.location.hash.split('#')[1]);
|
if (window.location.hash) parse(window.location.hash.split('#')[1]);
|
||||||
window.addEventListener('hashchange', function() { if (window.location.hash) parse(window.location.hash.split('#')[1]); });
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12092,9 +12091,9 @@ function getFontAwesomeIconForMimetype(mimetype) {
|
|||||||
|
|
||||||
function propertyChange(e) {
|
function propertyChange(e) {
|
||||||
if (e.target.dataset.group) {
|
if (e.target.dataset.group) {
|
||||||
parsed[e.target.dataset.group][e.target.dataset.index] = e.target.value;
|
parsed[e.target.dataset.group][e.target.dataset.index] = e.target.value || "";
|
||||||
} else {
|
} else {
|
||||||
parsed[e.target.id] = e.target.value;
|
parsed[e.target.id] = e.target.value || "";
|
||||||
}
|
}
|
||||||
if (e.target.id != "creationDate") creationDate.value = new Date().toISOString().slice(0, 19);
|
if (e.target.id != "creationDate") creationDate.value = new Date().toISOString().slice(0, 19);
|
||||||
createdBy.value = "Torrent Parts <https://torrent.parts/>";
|
createdBy.value = "Torrent Parts <https://torrent.parts/>";
|
||||||
|
|||||||
5
parse.js
5
parse.js
@@ -58,7 +58,6 @@ function start() {
|
|||||||
comment.addEventListener('input', propertyChange);
|
comment.addEventListener('input', propertyChange);
|
||||||
|
|
||||||
if (window.location.hash) parse(window.location.hash.split('#')[1]);
|
if (window.location.hash) parse(window.location.hash.split('#')[1]);
|
||||||
window.addEventListener('hashchange', function() { if (window.location.hash) parse(window.location.hash.split('#')[1]); });
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,9 +205,9 @@ function getFontAwesomeIconForMimetype(mimetype) {
|
|||||||
|
|
||||||
function propertyChange(e) {
|
function propertyChange(e) {
|
||||||
if (e.target.dataset.group) {
|
if (e.target.dataset.group) {
|
||||||
parsed[e.target.dataset.group][e.target.dataset.index] = e.target.value;
|
parsed[e.target.dataset.group][e.target.dataset.index] = e.target.value || "";
|
||||||
} else {
|
} else {
|
||||||
parsed[e.target.id] = e.target.value;
|
parsed[e.target.id] = e.target.value || "";
|
||||||
}
|
}
|
||||||
if (e.target.id != "creationDate") creationDate.value = new Date().toISOString().slice(0, 19);
|
if (e.target.id != "creationDate") creationDate.value = new Date().toISOString().slice(0, 19);
|
||||||
createdBy.value = "Torrent Parts <https://torrent.parts/>";
|
createdBy.value = "Torrent Parts <https://torrent.parts/>";
|
||||||
|
|||||||
Reference in New Issue
Block a user