More changes to the UI, more API...

This commit is contained in:
andryyy
2017-05-29 21:51:06 +02:00
parent f84a3a731a
commit 5a95d2062c
34 changed files with 519 additions and 385 deletions

View File

@@ -32,9 +32,16 @@ $(document).ready(function() {
// Select checkbox by click on parent tr
$(document).on('click', 'tbody>tr', function(e) {
if (e.target.type == "checkbox") {
if(e.target.tagName.toLowerCase() === 'button') {
e.stopPropagation();
} else {
}
else if(e.target.tagName.toLowerCase() === 'a') {
e.stopPropagation();
}
else if (e.target.type == "checkbox") {
e.stopPropagation();
}
else {
var checkbox = $(this).find(':checkbox');
checkbox.trigger('click');
}