Permalink
Browse files

fix for jQuery 1.6+ release, no longer using attr() for tagName

  • Loading branch information...
rhodimus committed May 14, 2011
1 parent 1b4c496 commit 308854f0896124eb8719cdcd58b6929ac89e2461
Showing with 7 additions and 8 deletions.
  1. +1 −1 includes/jquery.ticker.js
  2. +6 −7 index.html
@@ -22,7 +22,7 @@
var newsID = '#' + $(this).attr('id');
/* Get the tag type - we will check this later to makde sure it is a UL tag */
- var tagType = $(this).attr('tagName');
+ var tagType = $(this).get(0).tagName;
return this.each(function() {
/* Internal vars */
View
@@ -6,12 +6,15 @@
<title>jQuery News Ticker</title>
<link href="styles/style.css?v=2011-04-25" rel="stylesheet" type="text/css" />
<link href="styles/ticker-style.css" rel="stylesheet" type="text/css" />
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
+ <script src="includes/jquery.ticker.js" type="text/javascript"></script>
+ <script src="includes/site.js" type="text/javascript"></script>
</head>
<body>
<h1>jQuery News Ticker</h1>
<div id="ticker-wrapper" class="no-js">
<ul id="js-news" class="js-hidden">
- <li class="news-item">jQuery News Ticker now has support for right-to-left langauages!</li>
+ <li class="news-item">jQuery News Ticker now has support for right-to-left languages!</li>
<li class="news-item">jQuery News Ticker now has support for loading content via an RSS feed!</li>
<li class="news-item">jQuery News Ticker now has an optional fade effect between items!</li>
<li class="news-item">New updates have been made to jQuery News Ticker! Check below for more details!</li>
@@ -21,7 +24,7 @@ <h1>jQuery News Ticker</h1>
<noscript>
<h2>Latest News</h2>
<ul id="no-js-news">
- <li class="news-item">jQuery News Ticker now has support right-to-left langauages!</li>
+ <li class="news-item">jQuery News Ticker now has support right-to-left languages!</li>
<li class="news-item">jQuery News Ticker now has support for loading content via an RSS feed!</li>
<li class="news-item">jQuery News Ticker now has an optional fade effect between items!</li>
<li class="news-item">New updates have been made to jQuery News Ticker! Check below for more details!</li>
@@ -48,7 +51,7 @@ <h2 class="divider-top">So how do I use this thing?!</h2>
<p>First, download the zip file containing the plugin and the example / documentation for the news ticker:</p>
<div id="download">
- <a href="jquery_news_ticker_2011-04-25.zip">
+ <a href="jquery_news_ticker.zip?v=2011-05-14">
<img src="images/dl-arr.png" alt="Download Now" />
<span class="dl">Download now</span>
<span class="sub">source files and docs</span>
@@ -259,9 +262,5 @@ <h2 class="divider-top">Hey, this is really great work - how can I thank you?</h
<a id="github" href="http://github.com/rhodimus/jQuery-News-Ticker"><img src="images/forkme.png" alt="Fork me on GitHub"></a>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
- <script src="includes/jquery.ticker.js" type="text/javascript"></script>
- <script src="includes/site.js" type="text/javascript"></script>
-
</body>
</html>

0 comments on commit 308854f

Please sign in to comment.