aboutsummaryrefslogtreecommitdiff
path: root/app/views/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/javascript')
-rw-r--r--app/views/javascript/main.phtml8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
index 6e216f598..fe0492b67 100644
--- a/app/views/javascript/main.phtml
+++ b/app/views/javascript/main.phtml
@@ -63,8 +63,11 @@ function mark_read (active) {
if (active[0] === undefined) {
return false;
}
-
+
url = active.find ("a.read").attr ("href");
+ if (url === undefined) {
+ return false;
+ }
$.ajax ({
type: 'POST',
@@ -92,6 +95,9 @@ function mark_favorite (active) {
}
url = active.find ("a.bookmark").attr ("href");
+ if (url === undefined) {
+ return false;
+ }
$.ajax ({
type: 'POST',