Browse files

fixed problem with href used as tipAttribute

  • Loading branch information...
1 parent 5bc2966 commit 647827c916d8412460bd280f2f30451a4ce82029 @kswedberg committed Feb 23, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −1 jquery.cluetip.all.js
  2. +3 −1 jquery.cluetip.js
  3. +1 −1 jquery.cluetip.min.js
View
2 jquery.cluetip.all.js
@@ -1,7 +1,7 @@
/*!
* jQuery clueTip plugin v1.2.5
*
- * Date: Mon Jan 16 23:33:54 2012 EST
+ * Date: Sat Feb 04 22:52:27 2012 EST
* Requires: jQuery v1.3+
*
* Copyright 2011, Karl Swedberg
View
4 jquery.cluetip.js
@@ -203,7 +203,8 @@
cluetipContents = false,
isActive = false,
closeOnDelay = 0,
- tipAttribute = opts[opts.attribute] || $link.attrProp(opts.attribute) || $link.attr(opts.attribute),
+ tipAttribute = opts[opts.attribute] ||
+ ( opts.attribute == 'href' ? $link.attr(opts.attribute) : $link.attrProp(opts.attribute) || $link.attr(opts.attribute) ),
ctClass = opts.cluetipClass;
cluezIndex = +opts.cluezIndex;
@@ -215,6 +216,7 @@
// if hideLocal is set to true, on DOM ready hide the local content that will be displayed in the clueTip
if (opts.local && opts.localPrefix) {tipAttribute = opts.localPrefix + tipAttribute;}
if (opts.local && opts.hideLocal && tipAttribute) { $(tipAttribute + ':first').hide(); }
+
var tOffset = parseInt(opts.topOffset, 10), lOffset = parseInt(opts.leftOffset, 10);
// vertical measurement variables
var tipHeight, wHeight,
View
2 jquery.cluetip.min.js
@@ -1,7 +1,7 @@
/*!
* jQuery clueTip plugin v1.2.5
*
- * Date: Mon Jan 16 23:33:54 2012 EST
+ * Date: Sat Feb 04 22:52:27 2012 EST
* Requires: jQuery v1.3+
*
* Copyright 2011, Karl Swedberg

0 comments on commit 647827c

Please sign in to comment.