make invalid object received headlines appear less

This commit is contained in:
Andrew Dolgov 2012-12-26 18:24:14 +04:00
parent d8858f27c6
commit 0cd35af0ba
1 changed files with 3 additions and 1 deletions

View File

@ -202,11 +202,13 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
else else
request_counters(); request_counters();
} else { } else if (transport.responseText) {
console.error("Invalid object received: " + transport.responseText); console.error("Invalid object received: " + transport.responseText);
dijit.byId("headlines-frame").attr('content', "<div class='whiteBox'>" + dijit.byId("headlines-frame").attr('content', "<div class='whiteBox'>" +
__('Could not update headlines (invalid object received - see error console for details)') + __('Could not update headlines (invalid object received - see error console for details)') +
"</div>"); "</div>");
} else {
notify_error("Error communicating with server.");
} }
_infscroll_request_sent = 0; _infscroll_request_sent = 0;