diff options
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; }); |
