From 02a8557a3e5f7311f1627e7f159eadde5d30c794 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Fri, 11 May 2012 11:49:22 -0400 Subject: [PATCH] Bug 7977: Improving upload result message display Signed-off-by: Jared Camins-Esakov Signed-off-by: Mason James --- .../prog/en/modules/tools/quotes-upload.tt | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt index 996a1b20bc..2330ee6c69 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt @@ -268,12 +268,13 @@ success : function(){ var response = JSON.parse(jqXHR.responseText); if (response.success) { - $("#server_response").text(response.records+_(' quotes saved.')); + alert(response.records+_(' quotes saved.')); + window.location.reload(true); // is this the best route? } else { - $("#server_response").text(+response.records+_(' quotes saved, but an error has occurred. Please ask your administrator to check the server log for more details.')); + alert(response.records+_(' quotes saved, but an error has occurred. Please ask your administrator to check the server log for more details.')); + window.location.reload(true); // is this the best route? } - $("#server_response").fadeIn(200); }, }); } @@ -292,11 +293,6 @@ } } - function fnResetUpload() { - $('#server_response').fadeOut(200); - window.location.reload(true); // is this the best route? - } - //]]> @@ -339,7 +335,6 @@
0%
-
Server Response
-- 2.39.5