Skip to content

Commit

Permalink
Fixed sonal cloud issues
Browse files Browse the repository at this point in the history
  • Loading branch information
etchirag committed Aug 28, 2024
1 parent 9c7d2cf commit 603ddaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions js/qsm-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1383,9 +1383,9 @@ function qsm_is_substring_in_array( text, array ) {
// Stop multiple times registering click event
$(document).off('click', '.qsm-slashcommand-variables-button').on('click', '.qsm-slashcommand-variables-button', function(e) {
e.preventDefault();
var id = $(this).data('id');
var editor = tinymce.get(id);
var contentToInsert = '/';
let id = $(this).data('id');
let editor = tinymce.get(id);
let contentToInsert = '/';
editor.focus();
editor.selection.setContent(contentToInsert);
showAutocomplete(editor, true);
Expand All @@ -1401,8 +1401,8 @@ function qsm_is_substring_in_array( text, array ) {
} );

jQuery(document).on('qsm_after_add_result_block', function(event, conditions, page, redirect, total) {
var $matchingElement = $(`#results-page-${total}`);
var $button = $matchingElement.parents('.results-page-show').find('.qsm-result-editor-custom-button');
let $matchingElement = $(`#results-page-${total}`);
let $button = $matchingElement.parents('.results-page-show').find('.qsm-result-editor-custom-button');
$button.attr('data-id', total - 1);
});
}
Expand Down
2 changes: 1 addition & 1 deletion php/admin/options-page-results-page-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function qsm_options_results_tab_template(){
<button type="button" class="button qsm-slashcommand-variables-button qsm-result-editor-custom-button">
<span class="qsm-slash-inside"> / </span><?php esc_html_e('Variables', 'quiz-master-next'); ?>
</button>
<?php
<?php
if ( ! class_exists('QSM_Extra_Shortcodes') ) {
$qsm_pop_up_arguments = array(
"id" => 'modal-extra-shortcodes',
Expand Down

0 comments on commit 603ddaa

Please sign in to comment.