Prompt user before resetting the app

Closes #156.
This commit is contained in:
Thibaut 2015-02-01 16:41:06 -05:00
parent c9cf6e2e87
commit 6196e1dcc7
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ app.templates.notifUpdateReady = ->
app.templates.notifError = ->
textNotif """ Oops, an error occured. """,
""" Try <a href="javascript:app.reload()">reloading</a>, and if the problem persists,
<a href="javascript:app.reset()">resetting the app</a>.<br>
<a href="javascript:if(confirm('Are you sure you want to reset DevDocs?'))app.reset()">resetting the app</a>.<br>
You can also report this issue on <a href="https://github.com/Thibaut/devdocs/issues/new" target="_blank">GitHub</a>. """
app.templates.notifInvalidLocation = ->

View file

@ -33,7 +33,7 @@ app.templates.offlinePage = (docs) -> """
<dt>I found a bug, where do I report it?
<dd>In the <a href="https://github.com/Thibaut/devdocs/issues">issue tracker</a>. Thanks!
<dt>How do I uninstall/reset the app?
<dd>Click <a href="javascript:app.reset()">here</a>.
<dd>Click <a href="javascript:if(confirm('Are you sure you want to reset DevDocs?'))app.reset()">here</a>.
<dt>Why aren't all documentations listed above?
<dd>You have to <a href="#" data-pick-docs>enable</a> them first.
</dl>