AIRTIME_DEV_README 1.1 KB

123456789101112131415161718192021222324
  1. Before overwriting jquery.tipsy.js, please note we have changed a few lines to
  2. support manual triggering with live tipsy tooltips
  3. denise@denise-DX4860:~/airtime/airtime_mvc/public/js/tipsy$ diff -u jquery.tipsy_orig.js jquery.tipsy.js
  4. --- jquery.tipsy_orig.js 2012-12-13 12:03:48.780751104 -0500
  5. +++ jquery.tipsy.js 2012-12-13 12:08:15.564761493 -0500
  6. @@ -173,12 +173,10 @@
  7. if (!options.live) this.each(function() { get(this); });
  8. - if (options.trigger != 'manual') {
  9. - var binder = options.live ? 'live' : 'bind',
  10. - eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
  11. - eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
  12. - this[binder](eventIn, enter)[binder](eventOut, leave);
  13. - }
  14. + var binder = options.live ? 'live' : 'bind',
  15. + eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
  16. + eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
  17. + this[binder](eventIn, enter)[binder](eventOut, leave);
  18. return this;