Commit 10faa4c0 authored by Matija Obreza's avatar Matija Obreza

Fix: JS for explore2.jsp

parent 65e064f4
...@@ -335,17 +335,15 @@ ...@@ -335,17 +335,15 @@
} }
}); });
cropNames = function(){ {
var data = null;
console.log('cropNames /explore/getCrops'); console.log('cropNames /explore/getCrops');
$.ajax({ $.ajax({
url: "/explore/getCrops", url: "/explore/getCrops",
method: 'get', method: 'get',
}).done(function (response) { }).done(function (response) {
data = response; return cropNames = response;
}); });
return data; }
}();
$("body").on("keypress", ".string-type", function (e) { $("body").on("keypress", ".string-type", function (e) {
if (e.keyCode === 13) { if (e.keyCode === 13) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment