mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-02 22:51:55 +00:00
add javascript to open context menu (not used yet)
This commit is contained in:
parent
a2bca1f68f
commit
7ae01f002f
|
|
@ -133,6 +133,33 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Theme_Style {
|
|||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder', 'must_drop_one_file','confirm_upload_new_version', 'upload_new_version'));
|
||||
?>
|
||||
/*
|
||||
$('body').on('contextmenu', 'tr.table-row-folder', function(ev) {
|
||||
ev.preventDefault();
|
||||
$('.contextmenu').hide();
|
||||
id = $(ev.currentTarget).attr('rel').split("_")[1],
|
||||
cl = $(this).closest('div.ajax').parent();
|
||||
$('#contextmenu-f'+id).css({
|
||||
'display': 'block',
|
||||
'left': (ev.pageX - cl.offset().left) + 'px', // Position horizontally
|
||||
'top': (ev.pageY - cl.offset().top) + 'px' // Position vertically
|
||||
});
|
||||
});
|
||||
$('body').on('contextmenu', 'tr.table-row-document', function(ev) {
|
||||
ev.preventDefault();
|
||||
$('.contextmenu').hide();
|
||||
id = $(ev.currentTarget).attr('rel').split("_")[1],
|
||||
cl = $(this).closest('div.ajax').parent();
|
||||
$('#contextmenu-d'+id).css({
|
||||
'display': 'block',
|
||||
'left': (ev.pageX - cl.offset().left) + 'px', // Position horizontally
|
||||
'top': (ev.pageY - cl.offset().top) + 'px' // Position vertically
|
||||
});
|
||||
});
|
||||
$(document).on('click', function() {
|
||||
$('.contextmenu').hide();
|
||||
});
|
||||
*/
|
||||
$(document).ready(function() {
|
||||
$('#searchfield').focus();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user