mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
4a3a104c4c
commit
817d966e3c
@ -128,7 +128,7 @@ class UserSessionData(SessionData):
|
||||
if self.has_changes:
|
||||
ajax_send('interface-data/set-session-data', self.changes, def(end_type, xhr, ev):
|
||||
if end_type != 'load':
|
||||
console.error('Failed to send session data to server: ' + xhr.error_string)
|
||||
console.error('Failed to send session data to server: ' + xhr.error_html)
|
||||
)
|
||||
self.changes = {}
|
||||
self.has_changes = False
|
||||
|
@ -22,7 +22,7 @@ def on_library_loaded(end_type, xhr, ev):
|
||||
if xhr.status == 401:
|
||||
p.innerHTML = _('You are not authorized to view this site')
|
||||
else:
|
||||
p.innerHTML = xhr.error_string
|
||||
p.innerHTML = xhr.error_html
|
||||
document.body.appendChild(p)
|
||||
|
||||
def on_library_load_progress(loaded, total):
|
||||
|
Loading…
x
Reference in New Issue
Block a user