mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 05:01:43 +00:00
add method printClickDocumentJs()
adds js for catching the event when clicking on a document row and onepage mode is on
This commit is contained in:
parent
bf6490f904
commit
24f030f1c7
|
@ -2238,6 +2238,19 @@ $(document).ready( function() {
|
||||||
";
|
";
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
function printClickDocumentJs() { /* {{{ */
|
||||||
|
$onepage = $this->params['onepage'];
|
||||||
|
if($onepage) {
|
||||||
|
?>
|
||||||
|
/* catch click on a document row in the list folders and documents */
|
||||||
|
$('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;
|
||||||
|
});
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start the row for a folder in list of documents and folders
|
* Start the row for a folder in list of documents and folders
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user