|
|
@ -406,8 +406,10 @@ function initRepository() { |
|
|
|
// watching script
|
|
|
|
// watching script
|
|
|
|
(function () { |
|
|
|
(function () { |
|
|
|
var $watch = $('#repo-watching'), |
|
|
|
var $watch = $('#repo-watching'), |
|
|
|
watchLink = $watch.data("watch"), |
|
|
|
watchLink = $watch.attr("data-watch"), |
|
|
|
unwatchLink = $watch.data("unwatch"); |
|
|
|
// 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 () { |
|
|
|
$watch.on('click', '.to-watch', function () { |
|
|
|
if ($watch.hasClass("watching")) { |
|
|
|
if ($watch.hasClass("watching")) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|