From 204e93a7916d24bae3cd2cef1f822c79bc6b3b77 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 27 Jan 2016 17:14:48 +0100 Subject: [PATCH] (menu/search) send errors to js log --- src/opnsense/mvc/app/views/layouts/default.volt | 3 +++ src/www/head.inc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/opnsense/mvc/app/views/layouts/default.volt b/src/opnsense/mvc/app/views/layouts/default.volt index 9e6597207..022532811 100644 --- a/src/opnsense/mvc/app/views/layouts/default.volt +++ b/src/opnsense/mvc/app/views/layouts/default.volt @@ -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){ diff --git a/src/www/head.inc b/src/www/head.inc index 87ec4701e..b4a139754 100644 --- a/src/www/head.inc +++ b/src/www/head.inc @@ -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){