Permalink
Browse files

Updated for jQuery 1.6.1

  • Loading branch information...
1 parent a844180 commit 24e62b654e5ac08036b1045708d40a2ae10bcc6b @ripter committed Jun 21, 2011
Showing with 22 additions and 56 deletions.
  1. +3 −5 default.html
  2. +3 −1 jquery.rating.js
  3. +3 −2 jquery.rating.pack.js
  4. BIN jquery.rating.zip
  5. +0 −19 js/jquery-1.3.2.min.js
  6. +13 −29 project.tmproj
View
@@ -1,16 +1,13 @@
<html>
<head>
- <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
+ <script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
- <script type="text/javascript" src="jquery.rating.js"></script>
-
-
+ <script type="text/javascript" src="jquery.rating2.js"></script>
<link rel="stylesheet" media="screen" type="text/css" href="jquery.rating.css" />
<script type="text/javascript">
$(document).ready(function(){
//Turn all the select boxes into rating controls
- $("#tmp").attr("disabled", "disabled");
$(".rating").rating();
//Show that we can bind on the select box
@@ -68,6 +65,7 @@ <h4 style="clear: both;">Source</h4>
<li><code>showCancel: true</code> : Should the cancel button be shown?</li>
<li><code>cancelValue: null</code> : If cancel button is shown, what should it's value be?</li>
<li><code>startValue: null</code> : If no property has the 'selected' attribute, what value should be displayed?</li>
+ <li><code>cancelTitle: "Cancel"</code> : The title for the cancel button.</li>
</ul>
</p>
View
@@ -1,6 +1,7 @@
//
// rating Plugin
// By Chris Richards
+// Last Update: 5/26/2011
//
// Turns a select box into a star rating control.
//
@@ -17,6 +18,7 @@
{
showCancel: true,
cancelValue: null,
+ cancelTitle: "Cancel",
startValue: null,
disabled: false
};
@@ -142,7 +144,7 @@
{
$("<a/>").prop({
className: "ui-rating-cancel ui-rating-cancel-empty",
- title: "Cancel"
+ title: settings.cancelTitle
}).appendTo(div);
}
};
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 24e62b6

Please sign in to comment.