// insert into editor
if ($.browser.redactor) {
if (this._editorElementAlternative === null) {
+ if (event !== null) {
+ var $api = $('.jsQuickReply:eq(0)').data('__api');
+ if ($api && !$api.getContainer().is(':visible')) {
+ this._insertQuotes = false;
+ $api.click(null);
+ }
+ }
+
this._editorElement.redactor('wbbcode.insertQuoteBBCode', $message.attr('data-username'), $message.data('link'), $quote, $quote);
}
else {
if (event !== null) {
this._dialog.wcfDialog('close');
}
-
- if (event !== null && this._editorElementAlternative === null) {
- var $api = $('.jsQuickReply:eq(0)').data('__api');
- if ($api && !$api.getContainer().is(':visible')) {
- this._insertQuotes = false;
- $api.click(null);
- }
- }
},
/**