summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorJustin Nuß <justin.nuss@hmmh.de>2014-07-22 11:56:08 +0200
committerJustin Nuß <justin.nuss@hmmh.de>2014-07-22 11:56:08 +0200
commit0b4fcf12244c85653e92c87293f63024301d8a66 (patch)
tree912dcc9420381e471ae1575055ab35fb36839f1f /public/js
parent536f65b8ad700dc919295562dd72d5d4ea750506 (diff)
downloadgitea-0b4fcf12244c85653e92c87293f63024301d8a66.tar.gz
gitea-0b4fcf12244c85653e92c87293f63024301d8a66.zip
Fix unwatch button not working in Firefox
Diffstat (limited to 'public/js')
-rw-r--r--public/js/app.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 4c376ea088..88ddd471dc 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;