Skip to content

Commit 5da5119

Browse files
committed
Fix special functions.
1 parent 0fdd92c commit 5da5119

6 files changed

Lines changed: 25 additions & 14 deletions

File tree

styles/pbtech/template/event/viewtopic_body_footer_before.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<!-- IF S_QUICK_REPLY --><!-- INCLUDEJS @boardtools_quickreply/quickreply_pbwow.js -->
1+
<!-- IF S_QUICK_REPLY --><!-- INCLUDEJS @boardtools_quickreply/quickreply_pbwow.js --><!-- ENDIF -->
22
<!-- INCLUDE @boardtools_quickreply/quickreply_init.html -->
3-
<style>
3+
<!-- IF S_QUICK_REPLY --><style>
44
/* Remove styling specific for standard quick reply. */
55
#qr_postform .panel {
66
background: #ECEBEA;
@@ -27,4 +27,3 @@
2727
.profile-context a.icon-refer:before { content: "\f1fa"; }
2828
.profile-context a.icon-pm:before { content: "\f075"; }
2929
</style><!-- ENDIF -->
30-
<!-- INCLUDEJS @boardtools_quickreply/quickreply_special.js -->

styles/pbwow3/template/event/viewtopic_body_footer_before.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<!-- IF S_QUICK_REPLY --><!-- INCLUDEJS @boardtools_quickreply/quickreply_pbwow.js -->
1+
<!-- IF S_QUICK_REPLY --><!-- INCLUDEJS @boardtools_quickreply/quickreply_pbwow.js --><!-- ENDIF -->
22
<!-- INCLUDE @boardtools_quickreply/quickreply_init.html -->
3-
<style>
3+
<!-- IF S_QUICK_REPLY --><style>
44
/* Remove styling specific for standard quick reply. */
55
#qr_postform > .panel {
66
max-width: none;
@@ -39,4 +39,3 @@
3939
.profile-context a.icon-refer:before { content: "\f1fa"; }
4040
.profile-context a.icon-pm:before { content: "\f075"; }
4141
</style><!-- ENDIF -->
42-
<!-- INCLUDEJS @boardtools_quickreply/quickreply_special.js -->
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<!-- IF S_QUICK_REPLY --><!-- INCLUDE @boardtools_quickreply/quickreply_init.html --><!-- ENDIF -->
2-
<!-- INCLUDEJS @boardtools_quickreply/quickreply_special.js -->
1+
<!-- INCLUDE @boardtools_quickreply/quickreply_init.html -->

styles/prosilver/template/quickreply_core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
handle_drops($('.action-bar .pagination'));
197197
qr_bind_pagination();
198198
qr_add_ajax(elements);
199-
quickreply.functions.qr_hide_subject(elements);
199+
quickreply.special.functions.qr_hide_subject(elements);
200200
$('#qr_posts').trigger('qr_loaded', [$(elements)]);
201201
var alert_box = $('#phpbb_alert'), alert_delay = (alert_box.is(':visible')) ? 3000 : 0;
202202
if (alert_box.is(':visible')) {

styles/prosilver/template/quickreply_init.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
<!-- IF S_QUICK_REPLY -->
12
<div id="qr_message" style="display: none;">{MESSAGE}</div>
23
<div id="qr_read_post_img" style="display: none;">{READ_POST_IMG}</div>
4+
<!-- ENDIF -->
35
<script type="text/javascript">
46
//<![CDATA[
57
var quickreply = {};
8+
<!-- IF S_QUICK_REPLY -->
69

710
// External plugins compatible with QuickReply.
811
quickreply.plugins = {
@@ -24,7 +27,6 @@
2427
enableComma: <!-- IF S_QR_COMMA_ENABLE -->true<!-- ELSE -->false<!-- ENDIF -->,
2528
enableScroll: <!-- IF S_QR_ENABLE_SCROLL -->true<!-- ELSE -->false<!-- ENDIF -->,
2629
fullQuote: <!-- IF S_QR_FULL_QUOTE -->true<!-- ELSE -->false<!-- ENDIF -->,
27-
hideSubject: <!-- IF QR_HIDE_POSTS_SUBJECT -->true<!-- ELSE -->false<!-- ENDIF -->,
2830
pluploadEnabled: <!-- IF S_PLUPLOAD and S_QR_SHOW_ATTACH_BOX -->true<!-- ELSE -->false<!-- ENDIF -->,
2931
quickNick: <!-- IF S_QR_QUICKNICK_ENABLE -->true<!-- ELSE -->false<!-- ENDIF -->,
3032
quickNickRef: <!-- IF S_QR_QUICKNICK_REF -->true<!-- ELSE -->false<!-- ENDIF -->,
@@ -71,8 +73,20 @@
7173
REPLY_IN_PM: '{LA_QR_REPLY_IN_PM}',
7274
WROTE: '{LA_WROTE}'
7375
};
76+
<!-- ENDIF -->
77+
78+
// Special features for QuickReply - settings.
79+
quickreply.special = {
80+
hideSubject: <!-- IF QR_HIDE_POSTS_SUBJECT -->true<!-- ELSE -->false<!-- ENDIF -->
81+
};
82+
83+
// Special features for QuickReply - functions.
84+
quickreply.special.functions = {};
7485
//]]>
7586
</script>
87+
<!-- IF S_QUICK_REPLY -->
7688
<!-- INCLUDEJS @boardtools_quickreply/quickreply_core.js -->
7789
<!-- INCLUDEJS @boardtools_quickreply/quickreply_plugins.js -->
7890
<!-- IF S_QR_SHOW_BUTTON_TRANSLIT --><!-- INCLUDEJS @boardtools_quickreply/translit.js --><!-- ENDIF -->
91+
<!-- ENDIF -->
92+
<!-- INCLUDEJS @boardtools_quickreply/quickreply_special.js -->

styles/prosilver/template/quickreply_special.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
*
88
* @param {jQuery} elements
99
*/
10-
quickreply.functions.qr_hide_subject = function (elements) {
11-
if (quickreply.settings.hideSubject) {
10+
quickreply.special.functions.qr_hide_subject = function (elements) {
11+
if (quickreply.special.hideSubject) {
1212
elements.find('.post').each(function () {
1313
var qr_post_subject = $(this).find('.postbody div h3:first').not('.first');
1414
if (qr_post_subject.length) {
@@ -18,5 +18,5 @@
1818
});
1919
}
2020
};
21-
quickreply.functions.qr_hide_subject($('#qr_posts'));
22-
})(jQuery, window, document);
21+
quickreply.special.functions.qr_hide_subject($('#qr_posts'));
22+
})(jQuery, window, document);

0 commit comments

Comments
 (0)