فهرست منبع

BugFix for #raw-text-original

Yuki Takei 8 سال پیش
والد
کامیت
9cf03e011e
2فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  1. 6 0
      lib/views/widget/not_found_content.html
  2. 0 5
      resource/js/app.js

+ 6 - 0
lib/views/widget/not_found_content.html

@@ -16,7 +16,13 @@
   {% include 'not_found_tabs.html' %}
   {% include 'not_found_tabs.html' %}
 
 
   <div class="tab-content">
   <div class="tab-content">
+    {#
+     # Commented out temporally -- 2018.04.07 Yuki Takei
+     # This will be fixed by https://github.com/weseek/growi/issues/324
+     #
+     #
     <script type="text/template" id="raw-text-original"># {{ path|path2name }}</script>
     <script type="text/template" id="raw-text-original"># {{ path|path2name }}</script>
+     #}
     {# list view #}
     {# list view #}
     <div class="p-t-10 active tab-pane page-list-container" id="revision-body">
     <div class="p-t-10 active tab-pane page-list-container" id="revision-body">
       {% if pages.length == 0 %}
       {% if pages.length == 0 %}

+ 0 - 5
resource/js/app.js

@@ -46,15 +46,10 @@ if (mainContent !== null) {
   pageRevisionId = mainContent.getAttribute('data-page-revision-id');
   pageRevisionId = mainContent.getAttribute('data-page-revision-id');
   pageRevisionCreatedAt = +mainContent.getAttribute('data-page-revision-created');
   pageRevisionCreatedAt = +mainContent.getAttribute('data-page-revision-created');
   pagePath = mainContent.attributes['data-path'].value;
   pagePath = mainContent.attributes['data-path'].value;
-  /*
-   * Commented out temporally -- 2018.04.07 Yuki Takei
-   * This will be fixed by https://github.com/weseek/growi/issues/324
-   *
   const rawText = document.getElementById('raw-text-original');
   const rawText = document.getElementById('raw-text-original');
   if (rawText) {
   if (rawText) {
     pageContent = rawText.innerHTML;
     pageContent = rawText.innerHTML;
   }
   }
-  */
   markdown = entities.decodeHTML(pageContent);
   markdown = entities.decodeHTML(pageContent);
 }
 }
 const isLoggedin = document.querySelector('.main-container.nologin') == null;
 const isLoggedin = document.querySelector('.main-container.nologin') == null;