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