Commit 2baa0c87 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(menu/search) send errors to js log

(cherry picked from commit 204e93a7)
parent a2b150c4
...@@ -90,6 +90,9 @@ ...@@ -90,6 +90,9 @@
cache: false, cache: false,
dataType: "json", dataType: "json",
data: {}, data: {},
error : function (jqXHR, textStatus, errorThrown) {
console.log('menu.search : ' +errorThrown);
},
success: function (data) { success: function (data) {
var menusearch_items = []; var menusearch_items = [];
$.each(data,function(idx, menu_item){ $.each(data,function(idx, menu_item){
......
...@@ -195,6 +195,9 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system ...@@ -195,6 +195,9 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system
cache: false, cache: false,
dataType: "json", dataType: "json",
data: {}, data: {},
error : function (jqXHR, textStatus, errorThrown) {
console.log('menu.search : ' +errorThrown);
},
success: function (data) { success: function (data) {
var menusearch_items = []; var menusearch_items = [];
$.each(data,function(idx, menu_item){ $.each(data,function(idx, menu_item){
......
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