mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-19 16:12:14 +02:00
Fix issue with line height calculation when using older versions of jQuery
This commit is contained in:
+6
-1
@@ -113,7 +113,7 @@
|
||||
$('#jqueryVersion').html($.fn.jquery);
|
||||
|
||||
var loghandle = function(event, delta) {
|
||||
var o = '', id = event.currentTarget.id;
|
||||
var o = '', id = event.currentTarget.id || event.currentTarget.nodeName;
|
||||
|
||||
o = '#' + id + ':';
|
||||
|
||||
@@ -137,6 +137,11 @@
|
||||
log( o );
|
||||
};
|
||||
|
||||
$(document)
|
||||
.mousewheel(function(event, delta) {
|
||||
loghandle(event, delta);
|
||||
});
|
||||
|
||||
$('#test1')
|
||||
.mousewheel(function(event, delta) {
|
||||
loghandle(event, delta);
|
||||
|
||||
Reference in New Issue
Block a user