diff options
| author | 2013-11-15 17:26:22 +0100 | |
|---|---|---|
| committer | 2013-11-15 17:26:22 +0100 | |
| commit | c805b031481d5b53b0f5f9d6d39bc83911709834 (patch) | |
| tree | 673938de8b4c681e9b0e7e96d04c3da574c2572e /public/scripts | |
| parent | 147b3fdda4d95c217ee3923930587d1dc1bd97ee (diff) | |
Corrige style bigMarkAsRead
Corrige problème héritage de style pour bigMarkAsRead.
Plus détails
Diffstat (limited to 'public/scripts')
| -rw-r--r-- | public/scripts/main.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/public/scripts/main.js b/public/scripts/main.js index 04c1977d5..159bf48b3 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -58,12 +58,16 @@ function mark_read(active, only_not_read) { elem = $('#' + feed_id + ' .feed').get(0), feed_unread = elem ? (parseInt(elem.getAttribute('data-unread'), 10) || 0) : 0, feed_priority = elem ? (parseInt(elem.getAttribute('data-priority'), 10) || 0) : 0; - elem.setAttribute('data-unread', Math.max(0, feed_unread + inc)); + if (elem) { + elem.setAttribute('data-unread', Math.max(0, feed_unread + inc)); + } //Update unread: category elem = $('#' + feed_id).parent().prevAll('.category').children(':first').get(0); feed_unread = elem ? (parseInt(elem.getAttribute('data-unread'), 10) || 0) : 0; - elem.setAttribute('data-unread', Math.max(0, feed_unread + inc)); + if (elem) { + elem.setAttribute('data-unread', Math.max(0, feed_unread + inc)); + } //Update unread: all if (feed_priority > 0) { @@ -589,8 +593,8 @@ function init_persona() { function init_confirm_action() { $('.confirm').click(function () { - return confirm(str_confirmation); - }); + return confirm(str_confirmation); + }); } function init_all() { |
