Commit 65e064f4 authored by Matija Obreza's avatar Matija Obreza

JS fixes

parent 6fe724c6
......@@ -109,7 +109,8 @@ var BrowseUtil = {
},
applySuggestions: function (jsonData, messages) {
$.ajax({
console.log('applySuggestions /explore/listFilterSuggestions');
$.ajax({
url: '/explore/listFilterSuggestions',
method: 'get',
data: {
......@@ -120,6 +121,7 @@ var BrowseUtil = {
}
});
console.log('applySuggestions /explore/booleanSuggestions');
$.ajax({
url: '/explore/booleanSuggestions',
method: 'get',
......@@ -131,6 +133,7 @@ var BrowseUtil = {
}
});
console.log('applySuggestions /explore/cropSuggestions');
$.ajax({
url: '/explore/cropSuggestions',
method: 'get',
......
......@@ -132,6 +132,7 @@ var GenesysChart = {
var opts = $.extend(true, defaultOptions, options);
console.log('chart Getting ' + url);
$.ajax(url, {
success : function(data) {
......@@ -338,11 +339,10 @@ var GenesysFilterUtil = {
GenesysFilterUtil.showFilter(filterId);
return;
}
console.log('Getting /additional-filter');
$.ajax('/' + document.documentElement.lang + '/additional-filter', {
type : 'GET',
data : 'filter=' + filter,
async: false,
success: function (data) {
if (filter.startsWith('gm:')) {
......@@ -681,7 +681,7 @@ var GenesysFilter = {
var XUtil = {
x01: function (path, handler, object) {
console.log('x01 Getting ' + path);
$.ajax(path, $.extend({}, {
type: 'POST',
dataType: 'json',
......@@ -782,6 +782,7 @@ $(document).ready(function() {
body.on('click', '.get_widget', function() {
var clientId = $(this).val();
console.log('getWidget Getting /get_widget');
$.ajax('/' + document.documentElement.lang + '/get_widget', {
type : 'GET',
data : 'clientId=' + clientId,
......@@ -797,6 +798,7 @@ $(document).ready(function() {
var sc = $('#selcounter');
console.log('Getting /sel/json/selection');
$.ajax({
url : '/sel/json/selection',
type : 'GET',
......@@ -817,6 +819,7 @@ $(document).ready(function() {
var aid = foo.attr('x-aid');
var action = foo.hasClass('picked') ? 'remove' : 'add';
console.log('Getting /sel/json');
$.ajax({
url : '/sel/json',
type : 'POST',
......
......@@ -337,10 +337,10 @@
cropNames = function(){
var data = null;
console.log('cropNames /explore/getCrops');
$.ajax({
url: "/explore/getCrops",
method: 'get',
async: false
}).done(function (response) {
data = response;
});
......
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