From af88f202f61eb318057ef251ca94a01f523e3c15 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 Content-Type: text/plain; charset="utf-8" --- .../prog/en/modules/tools/quotes-upload.tt | 13 ++++--------- 1 files 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 996a1b2..2330ee6 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
-- 1.7.0.4