[hide preview] not working if not signed in
 

When you are not signed in and start answering a question, you see [hide preview] text just above the preview area. But clicking on [hide preview] does not actually hide preview, which is confusing.

I came up with the following fix. In templates/question/javascript.html, I changed

    if ((askbot['data']['threadIsClosed'] === false) && askbot['data']['userIsAuthenticated']) {
        initEditor();
    }

to

if (askbot['data']['threadIsClosed'] === false) {
    initEditor();
}

Do you think this does not break other things?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
apg's avatar
167
apg
asked 11 years ago, updated 11 years ago

Comments

see more comments