Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 62c8d266
authored
Aug 05, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.0' of
https://git.opensipkd.com/aa.gusti/opensipkd-base
into v5.0
2 parents
9a1a4971
fa8b1349
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
opensipkd/detable/templates/detable.pt
opensipkd/detable/templates/detable.pt
View file @
62c8d26
...
@@ -146,9 +146,9 @@
...
@@ -146,9 +146,9 @@
let ${tableid}Columns = ${ structure: columns };
let ${tableid}Columns = ${ structure: columns };
function render_checkbox(value) {
function render_checkbox(value) {
if (value === true)
if (value === true)
return '<i class="fas fa-check-square" aria-hidden="true">';
return '<i class="fas fa-check-square" aria-hidden="true">';
if (value === false)
if (value === false)
return '<i class="fas fa-minus-square" aria-hidden="true">';
return '<i class="fas fa-minus-square" aria-hidden="true">';
return value;
return value;
}
}
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
}
}
return render_checkbox(false);
return render_checkbox(false);
}
}
}
}
else if (${tableid}Columns[co].wg_select === true) {
else if (${tableid}Columns[co].wg_select === true) {
${tableid}Columns[co].render = function (value) {
${tableid}Columns[co].render = function (value) {
if (value != null)
if (value != null)
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
scrollX: ${ field.scroll_x },
scrollX: ${ field.scroll_x },
//scrollY: ${field.scroll_y},
//scrollY: ${field.scroll_y},
//dom: '<"row"<"col-md-8"<"toolbar">Bl><"col-md-4"fr>>tip',
//dom: '<"row"<"col-md-8"<"toolbar">Bl><"col-md-4"fr>>tip',
dom: '<"row"<"col-md-8"<"toolbar">>><"row"<"col-md-8"Bl><"col-md-4"fr>>t<"row dt-footer"<"col-md-8" i><"col-md-4"p>>',
dom: '<"row"<"col-md-8"<"toolbar">>><"row"<"col-md-8"Bl><"col-md-4"fr>>t<"row dt-footer"<"col-md-8
sub-foot
" i><"col-md-4"p>>',
processing: true,
processing: true,
serverSide: ${ server_side },
serverSide: ${ server_side },
data: param_data,
data: param_data,
...
@@ -261,11 +261,12 @@
...
@@ -261,11 +261,12 @@
});
});
}
}
});
});
let tb = tb_array.join(' ');
let tb = tb_array.join(' ');
$("div.toolbar").html(tb);
$("div.toolbar").html(tb);
$("div.toolbar").attr('style', 'display:block; float: left; margin-bottom:6px; line-height:16px;');
$("div.toolbar").attr('style', 'display:block; float: left; margin-bottom:6px; line-height:16px;');
$("div.dt-footer").attr('style', 'margin-left: -7px;');
$("div.dt-footer").attr('style', 'margin-left: -7px;');
$("div.sub-foot").attr('style', 'position:unset;');
$(".dataTables_scrollBody").attr('style', 'margin-top: -10px;');
$(".dataTables_scrollBody").attr('style', 'margin-top: -10px;');
$('#${tableid} tbody').on('click', ':checkbox', function () {
$('#${tableid} tbody').on('click', ':checkbox', function () {
if (this.checked) m${tableid}CheckList.push($(this).val());
if (this.checked) m${tableid}CheckList.push($(this).val());
...
@@ -322,7 +323,7 @@
...
@@ -322,7 +323,7 @@
splitted.length = splitted.length - 1;
splitted.length = splitted.length - 1;
col_id = splitted.join("-");
col_id = splitted.join("-");
max_val = $("#" + col_id + '-max').val()
max_val = $("#" + col_id + '-max').val()
}
}
else {
else {
max_val = this.value;
max_val = this.value;
splitted.length = splitted.length - 1;
splitted.length = splitted.length - 1;
...
@@ -379,7 +380,7 @@
...
@@ -379,7 +380,7 @@
if (value !== undefined && value != null)
if (value !== undefined && value != null)
if ($(this).val() === value) $(this).attr("checked", true);
if ($(this).val() === value) $(this).attr("checked", true);
else $(this).attr("checked", false);
else $(this).attr("checked", false);
}
}
else {
else {
value = localStorage.getItem(col_id);
value = localStorage.getItem(col_id);
if (value !== undefined && value !== null)
if (value !== undefined && value !== null)
...
@@ -393,4 +394,4 @@
...
@@ -393,4 +394,4 @@
${structure:filter_scripts}
${structure:filter_scripts}
});
});
</script>
</script>
</div>
\ No newline at end of file
\ No newline at end of file
</div>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment