Revision history [back]
[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?
[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
to
if (askbot['data']['threadIsClosed'] === false) {
initEditor();
}
} Do you think this does not break other things?