update
Former-commit-id: 4f063734c4cfafd1f8c33bff31e56e3387bbf100
This commit is contained in:
@@ -61,7 +61,7 @@ Element.prototype.changeToDone = function(error, html) {
|
||||
let firstStep = () => {
|
||||
this.innerHTML = '<i class="material-icons">done</i>';
|
||||
if (error) {
|
||||
this.innerHTML = '<i class="material-icons">close</i>';
|
||||
this.innerHTML = '<i class="material-icons">close</i>';
|
||||
}
|
||||
|
||||
this.style.opacity = 1;
|
||||
@@ -151,7 +151,7 @@ function deleteEvent(event) {
|
||||
let request = new XMLHttpRequest(),
|
||||
html = buttons.delete.changeToLoading(),
|
||||
el, url;
|
||||
|
||||
|
||||
if (single) {
|
||||
url = window.location.pathname;
|
||||
} else {
|
||||
@@ -174,7 +174,7 @@ function deleteEvent(event) {
|
||||
buttons.delete.changeToDone(request.status != 204, html);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
request.send();
|
||||
});
|
||||
|
||||
@@ -219,9 +219,9 @@ function searchEvent(event) {
|
||||
if (event.keyCode == 13) {
|
||||
box.innerHTML = '';
|
||||
search.classList.add('ongoing');
|
||||
|
||||
|
||||
let url = window.location.host + window.location.pathname;
|
||||
|
||||
|
||||
if (document.getElementById("editor")) {
|
||||
url = removeLastDirectoryPartOf(url);
|
||||
}
|
||||
@@ -326,4 +326,4 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
||||
|
||||
setupSearch();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user