When clicking "set location" button in the node location, it will set the location incorrectly.
In monitor-nodes.html, line 73:
$('.set-location').click(function() {
var tmp_loc = $(this).prev().val();
}
$(this) is the "Set Location" button
$(this).prev() will be "Find Location" button
$(this).prev().prev() will be the input text.
The location value will be passed from "Find Location"
I think the location value should be passed by input text.
Maybe it should be like:
tmp_loc = $(this).prev().prev().val();
so the location will be passed from the input text.
When clicking "set location" button in the node location, it will set the location incorrectly.
In monitor-nodes.html, line 73: $('.set-location').click(function() { var tmp_loc = $(this).prev().val(); }
$(this) is the "Set Location" button $(this).prev() will be "Find Location" button $(this).prev().prev() will be the input text.
The location value will be passed from "Find Location" I think the location value should be passed by input text. Maybe it should be like: tmp_loc = $(this).prev().prev().val(); so the location will be passed from the input text.