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

Wallace Reis wreis at bestpractical.com
Thu Nov 20 15:39:49 EST 2014


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

Summary of changes:
 .../Search/Results.html/AfterResults                         | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit a790a8bedca53a54110bab9baef972cc6bacc6c8
Author: Wallace Reis <wreis at bestpractical.com>
Date:   Thu Nov 20 17:49:42 2014 -0200

    SideBySidePreview - fix paging positioning

diff --git a/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults b/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
index 12f0bbd..dbddc0a 100644
--- a/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
+++ b/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
@@ -5,7 +5,7 @@ tr.in-preview td { background: #ffb }
     position: fixed;
     width: 42%;
     top: 10em;
-    bottom: 3em;
+    bottom: 6em;
     overflow-y: scroll;
     overflow-x: hidden;
     z-index: 11;
@@ -14,6 +14,10 @@ tr.in-preview td { background: #ffb }
     position: fixed;
     bottom: 0;
 }
+.paging-with-previewinsearch {
+    position: fixed;
+    bottom: 2.5em;
+}
 #ticket-preview-container {
     position: fixed;
     top: 10em;
@@ -51,8 +55,9 @@ jQuery(function(){
             .load( url );
 % if ( RT->Config->Get('SideBySidePreview') ) {
         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();
+        jQuery('div.refresh').addClass('refresh-with-previewinsearch');
+        jQuery('div.paging').addClass('paging-with-previewinsearch');
 % } else {
         jQuery('html, body').animate({
             scrollTop: '+='+(jQuery("#ticket-preview-container").offset().top-jQuery(window).scrollTop())

commit c6f425cad64c62c9a5f5ff23233b049fb91646de
Author: Wallace Reis <wreis at bestpractical.com>
Date:   Thu Nov 20 18:39:37 2014 -0200

    SideBySidePreview - fix scrolling when rendering ticket-preview

diff --git a/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults b/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
index dbddc0a..d2e558d 100644
--- a/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
+++ b/html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
@@ -57,6 +57,9 @@ jQuery(function(){
         jQuery('table.collection-as-table').wrap( "<div class='collection-as-table-with-previewinsearch'></div>" );
         jQuery('#ticket-preview-container').show();
         jQuery('div.refresh').addClass('refresh-with-previewinsearch');
+        jQuery('div.collection-as-table-with-previewinsearch').animate({
+            scrollTop: '+='+(jQuery("tr.in-preview").offset().top-jQuery('div.collection-as-table-with-previewinsearch').offset().top)
+        }, 1000);
         jQuery('div.paging').addClass('paging-with-previewinsearch');
 % } else {
         jQuery('html, body').animate({

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



More information about the Bps-public-commit mailing list