[Bps-public-commit] RT-Extension-PreviewInSearch branch, side-by-side-preview, created. 02ef985c23b88dacf9e501155ceba0ae40455613

Wallace Reis wreis at bestpractical.com
Thu Nov 6 13:00:41 EST 2014


The branch, side-by-side-preview has been created
        at  02ef985c23b88dacf9e501155ceba0ae40455613 (commit)

- Log -----------------------------------------------------------------
commit 02ef985c23b88dacf9e501155ceba0ae40455613
Author: Wallace Reis <wreis at bestpractical.com>
Date:   Thu Nov 6 15:00:34 2014 -0300

    wip

diff --git a/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults b/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
index bba9a63..3af994f 100644
--- a/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
+++ b/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
@@ -1,5 +1,21 @@
 <style>
 tr.in-preview td { background: #ffb }
+% if ( RT->Config->Get('SideBySidePreview') ) {
+table.collection-as-table-smaller-left {
+    position: relative;
+    width: 43%;
+}
+#ticket-preview-container {
+    float: right;
+    width: 56%;
+    margin-top: -137%;
+}
+ at -moz-document url-prefix() {
+    #ticket-preview-container {
+        margin-top: -102%;
+    }
+}
+% }
 </style>
 <div id="ticket-preview-container" ></div>
 <script type="text/javascript">
@@ -28,6 +44,9 @@ jQuery(function(){
         jQuery('html, body').animate({
             scrollTop: '+='+(jQuery("#ticket-preview-container").offset().top-jQuery(window).scrollTop())
         }, 1000);
+% if ( RT->Config->Get('SideBySidePreview') ) {
+        jQuery('table.collection-as-table').addClass('collection-as-table-smaller-left');
+% }
     });
 });
 </script>

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



More information about the Bps-public-commit mailing list