Răsfoiți Sursa

use HandsontableModal in Page

utsushiiro 7 ani în urmă
părinte
comite
a9f1d2954f
2 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  1. 1 3
      src/client/js/util/Crowi.js
  2. 0 1
      src/server/views/widget/page_modals.html

+ 1 - 3
src/client/js/util/Crowi.js

@@ -236,9 +236,7 @@ export default class Crowi {
   }
 
   launchHandsonTableModal() {
-    const handsonTableModalElem = document.getElementById('handsontable-modal');
-    const handsonTableModal = ReactDOM.render(<HandsontableModal />, handsonTableModalElem);
-    handsonTableModal.show();
+    this.page.getHandsontableModal().show();
   }
 
   apiGet(path, params) {

+ 0 - 1
src/server/views/widget/page_modals.html

@@ -3,4 +3,3 @@
 {% include '../modal/create_template.html' %}
 {% include '../modal/duplicate.html' %}
 {% include '../modal/put_back.html' %}
-<div id="handsontable-modal"></div>