소스 검색

211112 js const bug fix

yukyo0821 3 년 전
부모
커밋
c9f4c5d7e7
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      backstage/static/js/editor.js
  2. 1 1
      backstage/static/js/yo.js
  3. 1 1
      backstage/templates/tables/editor_table.html

+ 1 - 1
backstage/static/js/editor.js

@@ -1,7 +1,7 @@
 const contentDiv = document.getElementById('editor_block');
 const titleButton = document.getElementById('title_button');
 const submitButton = document.getElementById('submit_button');
-const contentApiUrl = `${PORTAL_SERVER}contents?url=${(JSON.parse(document.getElementById('url').textContent)).url}`
+contentApiUrl = `${PORTAL_SERVER}contents?url=${(JSON.parse(document.getElementById('url').textContent)).url}`
 
 aa = "";
 frontMatters = [];

+ 1 - 1
backstage/static/js/yo.js

@@ -1,4 +1,4 @@
-const contentApiUrl = `${PORTAL_SERVER}contents?url=`;
+contentApiUrl = `${PORTAL_SERVER}contents?url=`;
 frontMatters = [];
 contentMatters = [];
 

+ 1 - 1
backstage/templates/tables/editor_table.html

@@ -122,7 +122,7 @@
   editTarget = "";
   frontMatters = [];
   contentMatters = [];
-  const contentApiUrl = `${PORTAL_SERVER}contents?url=`;
+  //const contentApiUrl = `${PORTAL_SERVER}contents?url=`;
 
   //allObjs = JSON.parse(htmlDecode('{{ collections }}'));
   //console.log(htmlDecode('{{ collections }}'));