Skip to content

Commit 9434284

Browse files
committed
fix: remove data- from fetch, pass and filter
1 parent 22f0e29 commit 9434284

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
</head>
3131
<body>
3232

33-
<a data-clone_id="stage" class="cloneBtn" data-actions="createClone">New Stage</a>
33+
<a data-clone_id="stage" class="cloneBtn" actions="createClone">New Stage</a>
3434
<!--<div id="saveFetch1" -->
3535
<!-- class="domEditor" -->
3636
<!-- name='clonehtml7' -->
3737
<!-- collection="module_activity124" -->
3838
<!-- document_id="5fbd3b198b0e4d7391255615" -->
39-
<!-- data-pass_id="me1234">-->
39+
<!-- pass_id="me1234">-->
4040

4141
<div class="Sortable">
4242

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ <h2 class="padding:5px_0px">Demo</h2>
109109
<a class="margin-right:10px" id="preview" data-show="preview" data-hide="code"><i class="far fa-eye"></i></a>
110110
<a class="margin-right:10px hidden" id="code" data-show="code" data-hide="preview"><i class="fas fa-code"></i></a>
111111
<!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
112-
<a target="modal" href="module_activity_datatable.html" data-pass_collection="modules" data-pass_document_id="" data-pass_fetch_value="" data-pass_prefix="" data-pass_to="render" data-modal_width="600px" data-modal_height="400px" data-modal_color="#229954"
113-
data-modal_header="false" class="margin-right:10px">
112+
<a target="modal" href="module_activity_datatable.html" pass-collection="modules" pass-document_id="" pass-fetch_value="" pass-prefix="" pass_to="render" modal-width="600px" modal-height="400px" modal-color="#229954"
113+
modal-header="false" class="margin-right:10px">
114114
<i class="fas fa-external-link-alt"></i>
115115
</a>
116116
<a class="margin-right:5px" data-fullscreen target="#playground-1"><i class="fas fa-expand"></i></a>

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ const CoCreateClone = {
7575

7676
clonedItem.classList.add('clonedItem');
7777

78-
//// remove data-pass_value_id from clonedItem
79-
clonedItem.removeAttribute('data-pass_value_id');
78+
//// remove pass-value_id from clonedItem
79+
clonedItem.removeAttribute('pass-value_id');
8080
let tags = clonedItem.querySelectorAll("*");
8181

8282
tags.forEach((tag) => {
83-
tag.removeAttribute('data-pass_value_id');
83+
tag.removeAttribute('pass-value_id');
8484
})
8585

8686
let prefix = this.__getNewPrefix(clone_name);

0 commit comments

Comments
 (0)