Skip to content

Commit

Permalink
qtips work in IE8 now
Browse files Browse the repository at this point in the history
  • Loading branch information
StoicLoofah committed Aug 5, 2013
1 parent 60c989c commit d69b27d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ I mostly don't know what versions of various components are required. So far, I
* [qTip2](http://qtip2.com/): 2.0.1

Browser support is:
* Internet Explorer 8+ (except the tooltips)
* Internet Explorer 8+
* Firefox 12+
* Chrome 18+

Expand Down
11 changes: 7 additions & 4 deletions chronoline/chronoline.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// chronoline.js v0.1.0
// chronoline.js v0.1.1
// by Kevin Leung for Zanbato, https://zanbato.com
// MIT license at https://github.com/StoicLoofah/chronoline.js/blob/master/LICENSE.md

Expand Down Expand Up @@ -115,7 +115,7 @@ function forwardWeek(date){
}

function Chronoline(domElement, events, options) {
this.VERSION = "0.1.0";
this.VERSION = "0.1.1";

var defaults = {
defaultStartDate: null, // the date furthest to the left on load. Defaults to today
Expand Down Expand Up @@ -426,14 +426,17 @@ function Chronoline(domElement, events, options) {
addElemClass(t.paperType, elem.node, 'chronoline-event');

elem.attr('title', myEvent.title);
if(t.tooltips && !jQuery.browser.msie){
if(t.tooltips){
var description = myEvent.description;
var title = myEvent.title;
if(typeof description == "undefined" || description == ''){
description = title;
title = '';
}
jQuery(elem.node).parent().qtip({
var $node = jQuery(elem.node);
if(Raphael.type == 'SVG')
$node = $node.parent();
$node.qtip({
content: {
title: title,
text: description
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2>Support</h2>
</ul><p>Browser support is:</p>

<ul>
<li>Internet Explorer 8+ (except the tooltips)</li>
<li>Internet Explorer 8+</li>
<li>Firefox 12+</li>
<li>Chrome 18+</li>
</ul><h2>Credits</h2>
Expand Down

0 comments on commit d69b27d

Please sign in to comment.