Changeset 4039
- Timestamp:
- 12/06/07 04:15:53 (1 year ago)
- Location:
- trunk/plugins/cluetip
- Files:
-
- 2 modified
-
jquery.cluetip.js (modified) (5 diffs)
-
jquery.dimensions.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/cluetip/jquery.cluetip.js
r4030 r4039 1 1 /* 2 2 * jQuery clueTip plugin 3 * Version 0.9.3.2 (12/0 6/2007)3 * Version 0.9.3.2 (12/05/2007) 4 4 * @requires jQuery v1.1.1+ 5 5 * @requires Dimensions plugin … … 175 175 posX = mouseX + lOffset; 176 176 } 177 var pY = posX < 0 ? event.pageY + tOffset : event.pageY;178 177 } 178 var pY = posX < 0 ? event.pageY + tOffset : event.pageY; 179 179 $cluetip.css({left: (posX > 0 && opts.positionBy != 'bottomTop') ? posX : (mouseX + (tipWidth/2) > winWidth) ? winWidth/2 - tipWidth/2 : Math.max(mouseX - (tipWidth/2),0)}); 180 180 } … … 350 350 -------------------------------------- */ 351 351 // activate by click 352 if (opts.activation == 'click'||opts.activation == 'toggle') { 353 352 if ( (/click|toggle/).test(opts.activation) ) { 354 353 $this.click(function(event) { 355 354 if ($cluetip.is(':hidden') || !$(this).is('.cluetip-clicked')) { … … 376 375 } else { 377 376 $this.click(function() { 378 if ($this.attr('href') && $this.attr('href') == tipAttribute ) {377 if ($this.attr('href') && $this.attr('href') == tipAttribute && !opts.clickThrough) { 379 378 return false; 380 379 } … … 453 452 activation: 'hover', // set to 'click' to force user to click to show clueTip 454 453 // set to 'focus' to show on focus of a form element and hide on blur 454 clickThrough: false, // if true, and activation is not 'click', then clicking on link will take user to the link's href, 455 // even if href and tipAttribute are equal 455 456 tracking: false, // if true, clueTip will track mouse movement 456 457 closePosition: 'top', // location of close text for sticky cluetips; can be 'top' or 'bottom' or 'title' -
trunk/plugins/cluetip/jquery.dimensions.js
r2802 r4039 41 41 if ( $.browser.opera || ($.browser.safari && parseInt($.browser.version) > 520) ) 42 42 return self.innerHeight - (($(document).height() > self.innerHeight) ? getScrollbarWidth() : 0); 43 43 44 else if ( $.browser.safari ) 44 45 return self.innerHeight; 45 46 else 46 return $.boxModel && document.documentElement.clientHeight || document.body.clientHeight;47 47 //return $.boxModel && Math.min(document.documentElement.clientHeight,document.body.clientHeight); 48 return $.boxModel && document.documentElement.clientHeight || document.body.clientHeight; 48 49 if ( this[0] == document ) 49 50 return Math.max( ($.boxModel && document.documentElement.scrollHeight || document.body.scrollHeight), document.body.offsetHeight );
