mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
21 lines
423 B
JavaScript
21 lines
423 B
JavaScript
"use strict";
|
|
|
|
var deleteHandler = function(event) {
|
|
event.preventDefault();
|
|
let name = this.dataset.delete;
|
|
|
|
let element = document.getElementById(name);
|
|
document.removeChild(element);
|
|
|
|
//$('label[for="' + name + '"]').fadeOut().remove();
|
|
// $('#' + name).fadeOut().remove();
|
|
|
|
return false;
|
|
}
|
|
|
|
document.addEventListener("DOMContentLoaded", function(event) {
|
|
//alert("hugo is working");
|
|
|
|
return false;
|
|
});
|