[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?

apg's avatar
167
apg
asked 2014-01-05 07:37:43 -0500, updated 2014-01-05 07:38:04 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments