[Bps-public-commit] rt-extension-quickreply branch, master, updated. 7bb4740fe0a7cf7c8f5f64c13a00f5fc86c0aa20

? sunnavy sunnavy at bestpractical.com
Mon Sep 23 11:22:55 EDT 2013


The branch, master has been updated
       via  7bb4740fe0a7cf7c8f5f64c13a00f5fc86c0aa20 (commit)
      from  4fd69ccf88752f74f4210e049912948737dc6d29 (commit)

Summary of changes:
 html/Callbacks/QuickReply/Search/Results.html/AfterResults  | 4 ++++
 html/Callbacks/QuickReply/Search/Results.html/BeforeResults | 1 +
 lib/RT/Extension/QuickReply.pm                              | 5 +++++
 3 files changed, 10 insertions(+)

- Log -----------------------------------------------------------------
commit 7bb4740fe0a7cf7c8f5f64c13a00f5fc86c0aa20
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Sep 23 23:08:28 2013 +0800

    $QuickReplyInSearchResults option

diff --git a/html/Callbacks/QuickReply/Search/Results.html/AfterResults b/html/Callbacks/QuickReply/Search/Results.html/AfterResults
index 8c6ff0b..baa92f3 100644
--- a/html/Callbacks/QuickReply/Search/Results.html/AfterResults
+++ b/html/Callbacks/QuickReply/Search/Results.html/AfterResults
@@ -15,3 +15,7 @@ jQuery(function() {
     });
 });
 </script>
+
+<%INIT>
+return unless RT->Config->Get('QuickReplyInSearchResults');
+</%INIT>
diff --git a/html/Callbacks/QuickReply/Search/Results.html/BeforeResults b/html/Callbacks/QuickReply/Search/Results.html/BeforeResults
index 1fe06ec..ce14e16 100644
--- a/html/Callbacks/QuickReply/Search/Results.html/BeforeResults
+++ b/html/Callbacks/QuickReply/Search/Results.html/BeforeResults
@@ -1,4 +1,5 @@
 <%INIT>
+return unless RT->Config->Get('QuickReplyInSearchResults');
 if ( ref $Format && $$Format !~ /__QuickReply__/ ) {
     $$DisplayFormat = $$Format;
     $$DisplayFormat .= q{,'__QuickReply__'};
diff --git a/lib/RT/Extension/QuickReply.pm b/lib/RT/Extension/QuickReply.pm
index d1f78cf..c7f2681 100644
--- a/lib/RT/Extension/QuickReply.pm
+++ b/lib/RT/Extension/QuickReply.pm
@@ -32,6 +32,11 @@ Add this line:
 
 or add C<RT::Extension::QuickReply> to your existing C<@Plugins> line.
 
+By default, Quick reply is not enabled in search results page, you can turn it
+on by:
+
+    Set($QuickReplyInSearchResults, 1);
+
 =item Clear your mason cache
 
     rm -rf /opt/rt4/var/mason_data/obj

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list