fixed a flaw of not rendering the 'Toggle View' button properly for the .md file

This commit is contained in:
hyung-hwan 2021-07-02 07:18:08 +00:00
parent bdcb2645fb
commit 0dc60ea717

View File

@ -269,6 +269,11 @@ function render_wiki_wc ()
function render_wiki_md ()
{
$("#code_toggle_wc_view_button").button().click(function() {
$("#code_diff_old_code_view").toggle();
$("#code_diff_new_code_view").toggleClass("code_file_full_width");
return false;
});
showdown_render_wiki (
"code_file_wiki_text",
"code_diff_new_code_view",