wiki page, comment views

This commit is contained in:
albert
2011-03-13 03:54:32 -04:00
parent bd520f61f7
commit 4717726217
16 changed files with 134 additions and 77 deletions

View File

@@ -12,6 +12,7 @@
$("#preview").toggle();
$("#dtext-help").toggle();
});
$("#c-forum-topics input[value=Preview]").click(function(e) {
e.preventDefault();
$.ajax({

View File

@@ -8,9 +8,9 @@
}
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) {
@@ -22,7 +22,9 @@
body: $("#wiki_page_body").val()
},
success: function(data) {
$("#preview").show().html(data);
$("#dtext-help").hide();
$("#preview").show();
$("#preview .content").html(data);
}
});
});