Skip to content

Commit f21c8d6

Browse files
committed
updated to jquery 1.9 zenorocha#9
1 parent 89effd3 commit f21c8d6

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Prefer a non-jquery version with pure JavaScript? No problem, [@ricardobeat](htt
4747

4848
## History
4949

50+
* v0.2.3 January 17, 2013
51+
* Updated to jQuery v1.9
5052
* v0.2.2 January 15, 2013
5153
* Fixed "Last commit" date
5254
* Cached repo data using sessionStorage

demo/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>jQuery Github Repos</h1>
3434

3535
<img id="github-logo" src="img/github-cat.png" alt="Github Cat" />
3636

37-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
37+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
3838
<script src="../jquery.github.repos.min.js"></script>
3939

4040
<script>

jquery.github.repos.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
var date = new Date(repo.pushed_at);
9595
var pushed_at = date.getDate() + '/' + (date.getMonth() + 1) + '/' + date.getFullYear();
9696

97-
var $widget = $(' \
97+
var $widget = $($.parseHTML(' \
9898
<div class="github-box"> \
9999
<div class="github-box-header"> \
100100
<h3> \
@@ -113,7 +113,7 @@
113113
<a class="repo-download" href="' + repo.url.replace('api.','').replace('repos/','') + '/zipball/master">Download as zip</a> \
114114
</div> \
115115
</div> \
116-
');
116+
'));
117117

118118
self.appendTemplate($widget);
119119

jquery.github.repos.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)