You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2017/04/06 07:40:43 UTC

svn commit: r1790356 - /myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/script/tobago-suggest.js

Author: lofwyr
Date: Thu Apr  6 07:40:43 2017
New Revision: 1790356

URL: http://svn.apache.org/viewvc?rev=1790356&view=rev
Log:
Merged from trunk
TOBAGO-1731: Input suggest-layer misplaced in combination with (after-)facet [from revision 1790348]

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/script/tobago-suggest.js

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/script/tobago-suggest.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/script/tobago-suggest.js?rev=1790356&r1=1790355&r2=1790356&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/script/tobago-suggest.js (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/script/tobago-suggest.js Thu Apr  6 07:40:43 2017
@@ -121,6 +121,9 @@ Tobago.Suggest.init = function(elements)
       input.bind('typeahead:open', function() {
         var $input = jQuery(this);
         var $suggest = $input.parent().siblings(".tobago-suggest");
+        if($suggest.length == 0) {
+          $suggest = $input.parent().parent().parent().siblings(".tobago-suggest");
+        }
         var $suggestPopup = jQuery(Tobago.Utils.escapeClientId($suggest.attr('id') + "::popup"));
         $suggestPopup.css("top", $input.offset().top + $input.outerHeight() + "px");
         $suggestPopup.css("left", $input.offset().left + "px");