Fix following links when editing translation
This commit is contained in:
@ -6,6 +6,8 @@ let TranslationFormHook = {
|
||||
this.tunit_editor = this.el.querySelector("#tunit-editor-content")
|
||||
this.save_edit_button = this.el.querySelector("#save-edit-button")
|
||||
this.save_publish_button = this.el.querySelector("#save-publish-button")
|
||||
let article_preview_links = document.querySelectorAll(".article-preview a")
|
||||
article_preview_links.forEach(el => el.addEventListener('click', e => e.preventDefault()))
|
||||
},
|
||||
keyupHandler(e) {
|
||||
var push_event = true
|
||||
|
||||
Reference in New Issue
Block a user