aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-02-21 19:15:23 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-02-21 19:15:23 +0100
commitcb913a3a76daf357ad36ca39c26b4aaf800211d2 (patch)
tree99eec0a9021ed4dd829e95ee3fa61de349789e9b /p/scripts
parentb4864149889a749042d344625d4ffbdbd3f8a3cc (diff)
CSP for statistics and forms
https://github.com/FreshRSS/FreshRSS/issues/1075
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index cfde5fd4e..d62a6aff8 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -899,7 +899,7 @@ function refreshUnreads() {
if ((incUnreadsFeed(null, feed_id, nbUnreads - feed_unreads) || isAll) && //Update of current view?
(nbUnreads - feed_unreads > 0)) {
- $('#new-article').show();
+ $('#new-article').attr('aria-hidden', 'false').show();
new_articles = true;
};
});
@@ -1122,10 +1122,10 @@ function init_feed_observers() {
$('select[id="category"]').on('change', function() {
var detail = $('#new_category_name').parent();
if ($(this).val() === 'nc') {
- detail.show();
+ detail.attr('aria-hidden', 'false').show();
detail.find('input').focus();
} else {
- detail.hide();
+ detail.attr('aria-hidden', 'true').hide();
}
});
}