summaryrefslogtreecommitdiff
path: root/public/scripts
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2013-11-24 19:35:33 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2013-11-24 19:35:33 -0500
commitfaf5225d4c6bfd537bab3ffe579a87655b7b4ada (patch)
treeffb752ce3918fae22fbe6c710eaba9f9a4dd8e58 /public/scripts
parent9fee917c6102df9371580d0796431e99143907db (diff)
parentab26cb6ed8904bb873e0ae4b874aed3f3a0fdb48 (diff)
Merge remote-tracking branch 'upstream/dev' into issue283
Diffstat (limited to 'public/scripts')
-rw-r--r--public/scripts/main.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/public/scripts/main.js b/public/scripts/main.js
index 81538f4c4..bc40e4879 100644
--- a/public/scripts/main.js
+++ b/public/scripts/main.js
@@ -298,7 +298,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;
});