Skip to content
Snippets Groups Projects
Commit be77da4f authored by Jared Hancock's avatar Jared Hancock
Browse files

redactor: Fix thread items not showing in image browse

parent 64eac5f6
Branches
Tags
No related merge requests found
...@@ -5,8 +5,8 @@ $events->rewind(); ...@@ -5,8 +5,8 @@ $events->rewind();
$event = $events->current(); $event = $events->current();
$htmlId = $options['html-id'] ?: ('thread-'.$this->getId()); $htmlId = $options['html-id'] ?: ('thread-'.$this->getId());
?> ?>
<div id="<?php echo $htmlId; ?>" data-thread-id="<?php echo $this->getId(); ?>"> <div id="<?php echo $htmlId; ?>">
<div id="thread-items"> <div id="thread-items" data-thread-id="<?php echo $this->getId(); ?>">
<?php <?php
if (count($entries)) { if (count($entries)) {
// Go through all the entries and bucket them by time frame // Go through all the entries and bucket them by time frame
......
...@@ -310,8 +310,8 @@ $(function() { ...@@ -310,8 +310,8 @@ $(function() {
options['plugins'].push('fullscreen'); options['plugins'].push('fullscreen');
if (el.data('translateTag')) if (el.data('translateTag'))
options['plugins'].push('translatable'); options['plugins'].push('translatable');
if ($('#ticket_thread[data-thread-id]').length) if ($('#thread-items[data-thread-id]').length)
options['imageManagerJson'] += '?threadId=' + $('#ticket_thread').data('threadId'); options['imageManagerJson'] += '?threadId=' + $('#thread-items').data('threadId');
getConfig().then(function(c) { getConfig().then(function(c) {
if (c.lang && c.lang.toLowerCase() != 'en_us' && if (c.lang && c.lang.toLowerCase() != 'en_us' &&
$.Redactor.opts.langs[c.short_lang]) $.Redactor.opts.langs[c.short_lang])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment