mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix warning
This commit is contained in:
parent
1d355561e9
commit
2c4df3b57d
|
|
@ -304,7 +304,7 @@ if ($action != 'export_csv') {
|
|||
|
||||
print '<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
jQuery("#exportcsvbutton").click(function() {
|
||||
jQuery("#exportcsvbutton").click(function(event) {
|
||||
event.preventDefault();
|
||||
console.log("Set action to export_csv");
|
||||
jQuery("#action").val("export_csv");
|
||||
|
|
|
|||
|
|
@ -2578,18 +2578,18 @@ function top_menu_quickadd()
|
|||
});
|
||||
$("#topmenu-quickadd-dropdown .dropdown-toggle").on("click", function(event) {
|
||||
console.log("Click on #topmenu-quickadd-dropdown .dropdown-toggle");
|
||||
openQuickAddDropDown();
|
||||
openQuickAddDropDown(event);
|
||||
});
|
||||
|
||||
// Key map shortcut
|
||||
$(document).keydown(function(e){
|
||||
if( e.which === 76 && e.ctrlKey && e.shiftKey ){
|
||||
$(document).keydown(function(event){
|
||||
if ( event.which === 76 && event.ctrlKey && event.shiftKey ){
|
||||
console.log(\'control + shift + l : trigger open quick add dropdown\');
|
||||
openQuickAddDropDown();
|
||||
openQuickAddDropDown(event);
|
||||
}
|
||||
});
|
||||
|
||||
var openQuickAddDropDown = function() {
|
||||
var openQuickAddDropDown = function(event) {
|
||||
event.preventDefault();
|
||||
$("#topmenu-quickadd-dropdown").toggleClass("open");
|
||||
//$("#top-quickadd-search-input").focus();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user