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 9907a294
authored
Dec 13, 2024
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan detable checkclick
1 parent
b38714fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
25 deletions
opensipkd/base/alembic/versions/3d466f57ca86_upgrade_routes.py
opensipkd/detable/templates/detable.pt
opensipkd/base/alembic/versions/3d466f57ca86_upgrade_routes.py
0 → 100644
View file @
9907a29
"""upgrade routes
Revision ID: 3d466f57ca86
Revises: 8e703a7a0657
Create Date: 2024-12-13 11:24:35.337079
"""
# revision identifiers, used by Alembic.
revision
=
'3d466f57ca86'
down_revision
=
'8e703a7a0657'
branch_labels
=
None
depends_on
=
None
from
alembic
import
op
import
sqlalchemy
as
sa
def
upgrade
():
pass
def
downgrade
():
pass
opensipkd/detable/templates/detable.pt
View file @
9907a29
...
...
@@ -59,33 +59,8 @@
console.log("BBBBBBBBBBBB");
$(".${tableid}_check").prop("checked", false);
}
});
$('.modal-inner-content td').click(function (event) {
if (!$(event.target).is('input')) {
$('input:checkbox', this).prop('checked', function (i, value) {
console.log(i, value);
//return !value;
});
//$('.${tableid}_check').on("click", function (event) {
// console.log(event);
// if (this.checked) {
// m${tableid}ChekList.push($(this).val());
// } else {
// m${tableid}CheckList.splice(m${tableid}CheckList.indexOf($(this).val()), 1);
// }
//});
}
});
$('.${tableid}_check').on("click", function (event) {
console.log(event);
if (this.checked) {
m${tableid}ChekList.push($(this).val());
} else {
m${tableid}CheckList.splice(m${tableid}CheckList.indexOf($(this).val()), 1);
}
})
});
</script>
...
...
@@ -274,7 +249,21 @@
let tb = tb_array.join(' ');
$("div.toolbar").html(tb);
$("div.toolbar").attr('style', 'display:block; float: left; margin-bottom:6px; line-height:16px;');
$('#${tableid} tbody tr td').on('click', ':checkbox', function (event) {
alert("checkbox clicked");
if (this.checked) {
m${tableid}ChekList.push($(this).val());
} else {
m${tableid}CheckList.splice(m${tableid}CheckList.indexOf($(this).val()), 1);
}
console.log(m${tableid}CheckList);
})
$('#${tableid} tbody').on('click', 'tr', function () {
alert("table clicked");
if ($(this).hasClass('selected')) {
$(this).removeClass('selected');
m${tableid}ID = null;
...
...
@@ -288,6 +277,8 @@
$(this).addClass('row_selected');
}
});
$(".${tableid}-control-filter").on('keyup', function (e) {
var code = e.keyCode || e.which;
if (code === 13) {
...
...
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