Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow different HardBreaks settings for documents and comments #11515

Merged
merged 11 commits into from
May 24, 2020
Prev Previous commit
Next Next commit
Update web_src/js/index.js
Co-authored-by: silverwind <[email protected]>
  • Loading branch information
zeripath and silverwind committed May 19, 2020
commit 9fc97f724cc0d07c2d656f1df3707204acaf5975
5 changes: 1 addition & 4 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ function initEditPreviewTab($form) {
$previewTab.on('click', function () {
const $this = $(this);
let context = `${$this.data('context')}/`;
let mode = this.data('markdown-mode');
if (!mode) {
mode = 'comment';
}
const mode = this.data('markdown-mode') || 'comment';
zeripath marked this conversation as resolved.
Show resolved Hide resolved
const treePathEl = $form.find('input#tree_path');
if (treePathEl.length > 0) {
context += treePathEl.val();
Expand Down