Skip to content
Snippets Groups Projects
Commit a00d0a32 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge branch 'develop' into develop-next

parents f4979a78 e5024184
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@ $BUTTONS = isset($BUTTONS) ? $BUTTONS : true;
</div>
<?php } ?>
<div class="content"><?php
$faqs = FAQ::getFeatured()->select_related('category')->limit(5);
if ($faqs->all()) { ?>
if ($cfg->isKnowledgebaseEnabled()
&& ($faqs = FAQ::getFeatured()->select_related('category')->limit(5))
&& $faqs->all()) { ?>
<section><div class="header"><?php echo __('Featured Questions'); ?></div>
<?php foreach ($faqs as $F) { ?>
<div><a href="<?php echo ROOT_PATH; ?>kb/faq.php?id=<?php
......
......@@ -193,7 +193,7 @@ var scp_prep = function() {
}
});
$('form select#cannedResp').select2({width: '300px'});
$('form select#cannedResp').select2({width: '350px'});
$('form select#cannedResp').on('select2:opening', function (e) {
var redactor = $('.richtext', $(this).closest('form')).data('redactor');
if (redactor)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment