mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-23 16:13:33 +02:00
Doing form elements inside widgets clickable. Fixes #7.
This commit is contained in:
@@ -152,10 +152,16 @@
|
||||
|
||||
|
||||
fn.drag_handler = function(e) {
|
||||
var node = e.target.nodeName;
|
||||
|
||||
if (e.which !== 1) {
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (node === 'INPUT' || node === 'TEXTAREA' || node === 'SELECT') {
|
||||
return;
|
||||
};
|
||||
|
||||
var self = this;
|
||||
var first = true;
|
||||
this.$player = $(e.currentTarget);
|
||||
@@ -188,10 +194,7 @@
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user