mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add help link when user needs to refresh page
This commit is contained in:
parent
50112a59d4
commit
88799fc881
2 changed files with 3 additions and 2 deletions
|
@ -76,7 +76,7 @@ block content
|
|||
ng-click="done()"
|
||||
) ×
|
||||
h3 {{ title }}
|
||||
.modal-body {{ message }}
|
||||
.modal-body(ng-bind-html="message")
|
||||
.modal-footer
|
||||
button.btn.btn-info(ng-click="done()") #{translate("ok")}
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ define [
|
|||
@_bindToDocumentEvents(doc, new_sharejs_doc)
|
||||
callback null, new_sharejs_doc
|
||||
|
||||
|
||||
_bindToDocumentEvents: (doc, sharejs_doc) ->
|
||||
sharejs_doc.on "error", (error, meta) =>
|
||||
if error?.message?.match "maxDocLength"
|
||||
|
@ -98,7 +99,7 @@ define [
|
|||
@ide.reportError(error, meta)
|
||||
@ide.showGenericMessageModal(
|
||||
"Out of sync"
|
||||
"Sorry, this file has gone out of sync and we need to do a full refresh. Please let us know if this happens frequently."
|
||||
"Sorry, this file has gone out of sync and we need to do a full refresh. <br> <a href='http://sharelatex.tenderapp.com/help/kb/browsers/editor-out-of-sync-problems'>Please see this help guide for more information</a>"
|
||||
)
|
||||
@openDoc(doc, forceReopen: true)
|
||||
|
||||
|
|
Loading…
Reference in a new issue