From 04aa2e9344f8f3ca6e86621b9385d611ee5f477d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 17 Jan 2014 14:38:11 +0100 Subject: Manage search errors on JQueryJqGrid widget --- ishtar_common/templates/blocks/JQueryJqGrid.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ishtar_common/templates/blocks/JQueryJqGrid.html b/ishtar_common/templates/blocks/JQueryJqGrid.html index c5a04652a..6f8c94cbb 100644 --- a/ishtar_common/templates/blocks/JQueryJqGrid.html +++ b/ishtar_common/templates/blocks/JQueryJqGrid.html @@ -77,6 +77,9 @@ jQuery(document).ready(function(){ width:740, rowNum:20, jsonReader : {repeatitems: false}, + loadError: function (jqXHR, textStatus, errorThrown) { + alert("{% trans "An error as occured during search. Check your query fields." %}"); + } }); {% if multiple %} jQuery("#add_button_{{name}}").click(function (){ -- cgit v1.2.3