FIX: Pass ajax function to loadOneboxes (#12199)
When enable_diffhtml_preview is true, oneboxes failed to load because a wrong parameter was passed. This commit also unhides enable_diffhtml_preview.
This commit is contained in:
parent
0c8d658ba8
commit
dc7e3fab50
|
@ -1,3 +1,4 @@
|
|||
import { ajax } from "discourse/lib/ajax";
|
||||
import {
|
||||
caretPosition,
|
||||
clipboardHelpers,
|
||||
|
@ -404,7 +405,7 @@ export default Component.extend({
|
|||
resolveCachedShortUrls(this.siteSettings, cookedElement);
|
||||
loadOneboxes(
|
||||
cookedElement,
|
||||
null,
|
||||
ajax,
|
||||
null,
|
||||
null,
|
||||
this.siteSettings.max_oneboxes_per_post,
|
||||
|
|
|
@ -977,7 +977,6 @@ posting:
|
|||
default: false
|
||||
client: true
|
||||
enable_diffhtml_preview:
|
||||
hidden: true
|
||||
default: false
|
||||
client: true
|
||||
old_post_notice_days:
|
||||
|
|
Loading…
Reference in New Issue