aboutsummaryrefslogtreecommitdiff
path: root/p
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
parentb4864149889a749042d344625d4ffbdbd3f8a3cc (diff)
CSP for statistics and forms
https://github.com/FreshRSS/FreshRSS/issues/1075
Diffstat (limited to 'p')
-rw-r--r--p/scripts/main.js6
-rw-r--r--p/themes/base-theme/template.css8
2 files changed, 11 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();
}
});
}
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css
index 17a43d3ed..8a12423be 100644
--- a/p/themes/base-theme/template.css
+++ b/p/themes/base-theme/template.css
@@ -110,6 +110,11 @@ td.numeric {
/*=== COMPONENTS */
/*===============*/
+
+[aria-hidden="true"] {
+ display: none;
+}
+
/*=== Forms */
.form-group::after {
content: "";
@@ -620,6 +625,9 @@ br + br + br {
.stat > table {
width: 100%;
}
+.statGraph {
+ height: 300px;
+}
/*=== GLOBAL VIEW */
/*================*/