fixes #1586
This commit is contained in:
@@ -7,6 +7,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.Dtext.call_preview = function(e, $button, $input, $preview) {
|
Danbooru.Dtext.call_preview = function(e, $button, $input, $preview) {
|
||||||
|
$button.val("Edit");
|
||||||
|
$input.hide();
|
||||||
|
$preview.text("Loading...").fadeIn("fast");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/dtext_preview",
|
url: "/dtext_preview",
|
||||||
@@ -14,8 +17,6 @@
|
|||||||
body: $input.val()
|
body: $input.val()
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$button.val("Edit");
|
|
||||||
$input.hide();
|
|
||||||
$preview.html(data).fadeIn("fast");
|
$preview.html(data).fadeIn("fast");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user