mirror of
https://github.com/leoherzog/TorrentParts.git
synced 2026-01-23 19:58:03 -08:00
Remove Listener Now That We're Modifying Hash
This commit is contained in:
5
parse.js
5
parse.js
@@ -58,7 +58,6 @@ function start() {
|
||||
comment.addEventListener('input', propertyChange);
|
||||
|
||||
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) {
|
||||
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 {
|
||||
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);
|
||||
createdBy.value = "Torrent Parts <https://torrent.parts/>";
|
||||
|
||||
Reference in New Issue
Block a user