File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 18
18
< input value ="{{renderKey.name}} ">
19
19
< button actions ='renderKey ' href ="https://{{renderKey.name}}/admin/signin.html "> Create Form</ button >
20
20
</ div >
21
-
22
21
</ form >
23
22
24
- <!--<script src="../dist/CoCreate-render-key.js"></script>-->
23
+ <!-- <script src="../dist/CoCreate-render-key.js"></script> -->
25
24
< script src ="https://cdn.cocreate.app/latest/CoCreate.min.js "> </ script >
26
- <!-- <script src="https://cdn.cocreate.app/latest/ CoCreate.min .js"></script> -->
25
+ <!-- <script src="../../../CoCreateJS/dist/ CoCreate.js"></script> -->
27
26
28
27
</ body >
29
28
Original file line number Diff line number Diff line change @@ -183,9 +183,13 @@ const CoCreateRender = {
183
183
let cloneEl = template . cloneNode ( true ) ;
184
184
185
185
let templateId = cloneEl . getAttribute ( 'template_id' ) ;
186
+ if ( ! templateId )
187
+ templateId = cloneEl . getAttribute ( 'template' ) ;
188
+
186
189
if ( templateId ) {
187
190
cloneEl . setAttribute ( 'templateId' , templateId ) ;
188
191
cloneEl . removeAttribute ( 'template_id' ) ;
192
+ cloneEl . removeAttribute ( 'template' ) ;
189
193
}
190
194
191
195
if ( cloneEl . tagName == 'TEMPLATE' ) {
You can’t perform that action at this time.
0 commit comments