diff options
| author | 2012-10-28 14:56:52 +0100 | |
|---|---|---|
| committer | 2012-10-28 14:56:52 +0100 | |
| commit | 4d21eb67468a83c849b1bbf683eec1a573aacf04 (patch) | |
| tree | f6cfbf226846ec37e3d738fe0e9300c83c854184 /app/views/javascript/main.phtml | |
| parent | a947d37cec1cefef857e57bc4d21242762c9d12a (diff) | |
Correction js lorsqu'on n'est pas loggué
Diffstat (limited to 'app/views/javascript/main.phtml')
| -rw-r--r-- | app/views/javascript/main.phtml | 8 |
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', |
