diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-07-22 16:03:58 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-07-22 16:03:58 -0400 |
commit | dc2e1403603789e438ced9ac7dceb736d70f426c (patch) | |
tree | 9f27b9fb3907ef0bdb2f2c1a779776fcb37fd1cc /public/js | |
parent | 5bbd5be0caf35f23de833f765e2eeb0e5772fbf3 (diff) | |
parent | ec26b78d3cf1a72d0895ce37dc37b3f9cc3c11ea (diff) |
Merge pull request #296 from nuss-justin/dev
Fix issue 280 & unwatch button in Firefox
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js index 4c376ea0..88ddd471 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -406,8 +406,10 @@ function initRepository() { // watching script (function () { var $watch = $('#repo-watching'), - watchLink = $watch.data("watch"), - unwatchLink = $watch.data("unwatch"); + watchLink = $watch.attr("data-watch"), + // Use $.attr() to work around jQuery not finding $.data("unwatch") in Firefox, + // which has a method "unwatch" on `Object` that gets returned instead. + unwatchLink = $watch.attr("data-unwatch"); $watch.on('click', '.to-watch', function () { if ($watch.hasClass("watching")) { return false; |