changing folder/document will require a click on the second child of a row

This commit is contained in:
Uwe Steinmann 2019-10-16 17:59:43 +02:00
parent 4ac3dc0052
commit 6ae87d4fe0

View File

@ -163,15 +163,15 @@ console.log("location: " + document.location + ", state: " + JSON.stringify(even
console.log(JSON.stringify(event.state));
window.location = document.location;
};
$('body').on('click', '[id^=\"table-row-folder\"]', function(ev) {
attr_id = $(ev.currentTarget).attr('id').split('-')[3];
$('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev) {
attr_id = $(ev.currentTarget).parent().attr('id').split('-')[3];
folderSelected(attr_id, '');
$([document.documentElement, document.body]).animate({
scrollTop: 200
}, 200);
});
$('body').on('click', '[id^=\"table-row-document\"]', function(ev) {
attr_id = $(ev.currentTarget).attr('id').split('-')[3];
$('body').on('click', '[id^=\"table-row-document\"] td:nth-child(2)', function(ev) {
attr_id = $(ev.currentTarget).parent().attr('id').split('-')[3];
window.location = '../out/out.ViewDocument.php?documentid=' + attr_id;
});
$('body').on('click', '.order-btn', function(ev) {