Bugfix
Tento commit je obsažen v:
rodič
dbbcc67e93
revize
feb21b2e02
@ -35,11 +35,13 @@ $(function () {
|
|||||||
$(".thread").append(data.html + "<br>");
|
$(".thread").append(data.html + "<br>");
|
||||||
update_expandable($(`#${data.id} .expandable`));
|
update_expandable($(`#${data.id} .expandable`));
|
||||||
update_reltimes($(`#${data.id}`).find("time"));
|
update_reltimes($(`#${data.id}`).find("time"));
|
||||||
|
update_quote_links($(`#${data.id}`).find(".quote-link"));
|
||||||
break;
|
break;
|
||||||
case "updated":
|
case "updated":
|
||||||
$(`#${data.id}`).replaceWith(data.html);
|
$(`#${data.id}`).replaceWith(data.html);
|
||||||
update_expandable($(`#${data.id} .expandable`));
|
update_expandable($(`#${data.id} .expandable`));
|
||||||
update_reltimes($(`#${data.id}`).find("time"));
|
update_reltimes($(`#${data.id}`).find("time"));
|
||||||
|
update_quote_links($(`#${data.id}`)).find(".quote-link");
|
||||||
break;
|
break;
|
||||||
case "removed":
|
case "removed":
|
||||||
if (data.id === parseInt(thread[1])) {
|
if (data.id === parseInt(thread[1])) {
|
||||||
|
@ -7,7 +7,12 @@ $(function() {
|
|||||||
window.localStorage.removeItem("quoted_post");
|
window.localStorage.removeItem("quoted_post");
|
||||||
}
|
}
|
||||||
|
|
||||||
$(".quote-link").click(function () {
|
update_quote_links($(".quote-link"));
|
||||||
|
});
|
||||||
|
|
||||||
|
function update_quote_links(elements) {
|
||||||
|
elements.each(function() {
|
||||||
|
$(this).click(function () {
|
||||||
let post_id = $(this).text();
|
let post_id = $(this).text();
|
||||||
let thread_url = $(this).attr("data-thread-url");
|
let thread_url = $(this).attr("data-thread-url");
|
||||||
let current_url = window.location.pathname;
|
let current_url = window.location.pathname;
|
||||||
@ -23,4 +28,5 @@ $(function() {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
})
|
||||||
|
}
|
||||||
|
@ -71,7 +71,7 @@ summary {
|
|||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.draggable {
|
#post-form-handle {
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label draggable center" colspan="2">
|
<td id="post-form-handle" class="label center" colspan="2">
|
||||||
{% if reply %}
|
{% if reply %}
|
||||||
Nová odpověď
|
Nová odpověď
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele