diff options
| author | 2013-11-25 00:40:35 +0100 | |
|---|---|---|
| committer | 2013-11-25 00:40:35 +0100 | |
| commit | ab26cb6ed8904bb873e0ae4b874aed3f3a0fdb48 (patch) | |
| tree | 4af146215a360e268e045aacdac258969b4eb878 /public/scripts | |
| parent | eae19e13634593d919811f527eff9e1efd34c03b (diff) | |
Accessibilité sans images (expérimentation)
Expérimentation : utilisation de vraies images à la place des icônes
générées en CSS.
Permet de fournir un texte alternatif affiché en cas de non-chargement
de l'image (par choix ou problème réseau par exemple).
Meilleure sémantique (plutôt que le tag i détourné).
Implémente https://github.com/marienfressinaud/FreshRSS/issues/284
Il est toujours possible de changer d'icônes selon les thèmes grâce à
RSSThemes.php
Diffstat (limited to 'public/scripts')
| -rw-r--r-- | public/scripts/main.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/public/scripts/main.js b/public/scripts/main.js index e21483f28..6d8389a44 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -286,7 +286,15 @@ function init_column_categories() { return; } $('#aside_flux').on('click', '.category>a.dropdown-toggle', function () { - $(this).children().toggleClass("i_down").toggleClass("i_up").text($(this).hasClass("i_up") ? "△" : "▽"); + $(this).children().each(function() { + if (this.alt === '▽') { + this.src = this.src.replace('/icons/down.', '/icons/up.'); + this.alt = '△'; + } else { + this.src = this.src.replace('/icons/up.', '/icons/down.'); + this.alt = '▽'; + } + }); $(this).parent().next(".feeds").slideToggle(); return false; }); |
