[Bps-public-commit] RT-Extension-PreviewInSearch branch, master, updated. f0dce50ee4aada6a5c1dda083f6738a4d9dc2ae8

Wallace Reis wreis at bestpractical.com
Mon Nov 17 18:34:08 EST 2014


The branch, master has been updated
       via  f0dce50ee4aada6a5c1dda083f6738a4d9dc2ae8 (commit)
      from  b473b62d093f7c130a4be5e49d00af1002153d3d (commit)

Summary of changes:
 .../Search/Results.html/AfterResults                  | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit f0dce50ee4aada6a5c1dda083f6738a4d9dc2ae8
Author: Wallace Reis <wreis at bestpractical.com>
Date:   Mon Nov 17 21:31:26 2014 -0200

    Improve the design for SideBySidePreview display

diff --git a/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults b/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
index 7edb7b9..12f0bbd 100644
--- a/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
+++ b/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
@@ -1,13 +1,23 @@
 <style>
 tr.in-preview td { background: #ffb }
 % if ( RT->Config->Get('SideBySidePreview') ) {
-table.collection-as-table-smaller-left {
-    width: 43%;
+.collection-as-table-with-previewinsearch {
+    position: fixed;
+    width: 42%;
+    top: 10em;
+    bottom: 3em;
+    overflow-y: scroll;
+    overflow-x: hidden;
+    z-index: 11;
+}
+.refresh-with-previewinsearch {
+    position: fixed;
+    bottom: 0;
 }
 #ticket-preview-container {
     position: fixed;
     top: 10em;
-    left: 45%;
+    left: 47%;
     right: 0;
     bottom: 0;
     overflow-y: auto;
@@ -40,7 +50,8 @@ jQuery(function(){
         jQuery('#ticket-preview-container').text(<% loc('Loading...') |n,j %>)
             .load( url );
 % if ( RT->Config->Get('SideBySidePreview') ) {
-        jQuery('table.collection-as-table').addClass('collection-as-table-smaller-left');
+        jQuery('table.collection-as-table').wrap( "<div class='collection-as-table-with-previewinsearch'></div>" );
+        jQuery('div.refresh').addClass('refresh-with-previewinsearch');
         jQuery('#ticket-preview-container').show();
 % } else {
         jQuery('html, body').animate({

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



More information about the Bps-public-commit mailing list