1(function ($) { 2 3Drupal.behaviors.ajaxRegister = { 4 attach: function (context){ 5 6 // Make modal window height scaled automatically. 7 $('.ctools-modal-content, #modal-content', context).height('auto'); 8 9 // Position code lifted from http://www.quirksmode.org/viewport/compatibility.html 10 if (self.pageYOffset) { // all except Explorer 11 var wt = self.pageYOffset; 12 } 13 else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict 14 var wt = document.documentElement.scrollTop; 15 } 16 else if (document.body) { // all other Explorers 17 var wt = document.body.scrollTop; 18 } 19 20 // Fix CTools bug: calculate correct 'top' value. 21 var mdcTop = wt + ( $(window).height() / 2 ) - ($('#modalContent', context).outerHeight() / 2); 22 $('#modalContent', context).css({top: mdcTop + 'px'}); 23 } 24} 25 26})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.