Skip to content

Commit

Permalink
fix: remove data- from fetch, pass and filter
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jul 28, 2021
1 parent b4912e8 commit 5390b35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ <h2 class="padding:5px_0px">Demo</h2>
<a class="margin-right:10px hidden" id="code" data-show="code" data-hide="preview"><i class="fas fa-code"></i></a>
<!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
<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"
data-modal_header="false"
pass-collection="modules"
pass-document_id=""
pass-fetch_value=""
pass-prefix=""
pass_to="render"
modal-width="600px"
modal-height="400px"
modal-color="#229954"
modal-header="false"
class="margin-right:10px">
<i class="fas fa-external-link-alt"></i>
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const CoCreateUser = {
this.getCurrentOrg(data['id'], data['collection']);
}
render.data({
selector: "[data-template_id='login']",
selector: "[template_id='login']",
render: data
})

Expand Down Expand Up @@ -172,7 +172,7 @@ const CoCreateUser = {
checkPermissions: (data) => {
const tags = document.querySelectorAll('.' + CONST_PERMISSION_CLASS);
tags.forEach((tag) => {
let module_id = tag.getAttribute('document_id') ? tag.getAttribute('document_id'): tag.getAttribute('data-pass_document_id');
let module_id = tag.getAttribute('document_id') ? tag.getAttribute('document_id'): tag.getAttribute('pass-document_id');
let data_permission = tag.getAttribute('data-permission');
let userPermission = data['permission-' + module_id];

Expand Down

0 comments on commit 5390b35

Please sign in to comment.