wiki page, comment views
This commit is contained in:
@@ -1246,9 +1246,9 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
Danbooru.WikiPage.initialize_preview_link = function() {
|
||||
$("#c-wiki-pages input[value=Cancel]").click(function(e) {
|
||||
e.preventDefault();
|
||||
window.back();
|
||||
$("#c-wiki-pages #preview a[name=toggle-preview]").click(function() {
|
||||
$("#preview").toggle();
|
||||
$("#dtext-help").toggle();
|
||||
});
|
||||
|
||||
$("#c-wiki-pages input[value=Preview]").click(function(e) {
|
||||
@@ -1260,7 +1260,9 @@ $(document).ready(function() {
|
||||
body: $("#wiki_page_body").val()
|
||||
},
|
||||
success: function(data) {
|
||||
$("#preview").show().html(data);
|
||||
$("#dtext-help").hide();
|
||||
$("#preview").show();
|
||||
$("#preview .content").html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1284,6 +1286,7 @@ $(document).ready(function() {
|
||||
$("#preview").toggle();
|
||||
$("#dtext-help").toggle();
|
||||
});
|
||||
|
||||
$("#c-forum-topics input[value=Preview]").click(function(e) {
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
|
||||
Reference in New Issue
Block a user