(menu/search) send errors to js log

This commit is contained in:
Ad Schellevis 2016-01-27 17:14:48 +01:00
parent 3d7d907889
commit 204e93a791
2 changed files with 6 additions and 0 deletions

View File

@ -90,6 +90,9 @@
cache: false,
dataType: "json",
data: {},
error : function (jqXHR, textStatus, errorThrown) {
console.log('menu.search : ' +errorThrown);
},
success: function (data) {
var menusearch_items = [];
$.each(data,function(idx, menu_item){

View File

@ -196,6 +196,9 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system
cache: false,
dataType: "json",
data: {},
error : function (jqXHR, textStatus, errorThrown) {
console.log('menu.search : ' +errorThrown);
},
success: function (data) {
var menusearch_items = [];
$.each(data,function(idx, menu_item){