View | Details | Raw Unified | Return to bug 7977
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt (-10 / +4 lines)
Lines 268-279 Link Here
268
            success     : function(){
268
            success     : function(){
269
                            var response = JSON.parse(jqXHR.responseText);
269
                            var response = JSON.parse(jqXHR.responseText);
270
                            if (response.success) {
270
                            if (response.success) {
271
                                $("#server_response").text(response.records+_(' quotes saved.'));
271
                                alert(response.records+_(' quotes saved.'));
272
                                window.location.reload(true);   // is this the best route?
272
                            }
273
                            }
273
                            else {
274
                            else {
274
                                $("#server_response").text(+response.records+_(' quotes saved, but an error has occurred. Please ask your administrator to check the server log for more details.'));
275
                                alert(response.records+_(' quotes saved, but an error has occurred. Please ask your administrator to check the server log for more details.'));
276
                                window.location.reload(true);   // is this the best route?
275
                            }
277
                            }
276
                            $("#server_response").fadeIn(200);
277
                          },
278
                          },
278
        });
279
        });
279
    }
280
    }
Lines 292-302 Link Here
292
        }
293
        }
293
    }
294
    }
294
295
295
    function fnResetUpload() {
296
        $('#server_response').fadeOut(200);
297
        window.location.reload(true);   // is this the best route?
298
    }
299
300
    //]]>
296
    //]]>
301
    </script>
297
    </script>
302
</head>
298
</head>
Lines 339-345 Link Here
339
                        <div id="progress_bar"><div class="percent">0%</div></div>
335
                        <div id="progress_bar"><div class="percent">0%</div></div>
340
                    </div>
336
                    </div>
341
                </fieldset>
337
                </fieldset>
342
                <div id="server_response" onclick='fnResetUpload()'>Server Response</div>
343
                <table id="quotes_editor" style="visibility: hidden;">
338
                <table id="quotes_editor" style="visibility: hidden;">
344
                <thead>
339
                <thead>
345
                    <tr>
340
                    <tr>
346
- 

Return to bug 7977