summaryrefslogtreecommitdiffstats
path: root/hyperkitty/static/js/hyperkitty.js
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-07 19:06:22 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-07 19:06:38 +0100
commit13d11029ba45fa49855b3e346e3425ac1dce0702 (patch)
tree6952d56ed019bae0abf850eaa4939f3e6cb406da /hyperkitty/static/js/hyperkitty.js
parentaae9a5a1b6c75095817c0914ef7b92e63903fc2e (diff)
downloadhyperkitty-13d11029ba45fa49855b3e346e3425ac1dce0702.tar.gz
hyperkitty-13d11029ba45fa49855b3e346e3425ac1dce0702.tar.xz
hyperkitty-13d11029ba45fa49855b3e346e3425ac1dce0702.zip
Fix votes, and a javascript error (#37)
Diffstat (limited to 'hyperkitty/static/js/hyperkitty.js')
-rw-r--r--hyperkitty/static/js/hyperkitty.js21
1 files changed, 1 insertions, 20 deletions
diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js
index d5898dc..87d6987 100644
--- a/hyperkitty/static/js/hyperkitty.js
+++ b/hyperkitty/static/js/hyperkitty.js
@@ -54,10 +54,7 @@ function vote(elem, value) {
likestatus.find(".dislikecount").html(response.dislike);
},
error: function(jqXHR, textStatus, errorThrown) {
- // authentication or double-vote
- if (jqXHR.status === 403) {
- alert(jqXHR.responseText);
- }
+ alert(jqXHR.responseText);
}
});
}
@@ -304,21 +301,6 @@ function setup_months_list() {
$("#months-list").accordion({ collapsible: true, active: current });
}
-function setup_expander() {
- $('span.expander').expander({
- slicePoint: 500,
- userCollapseText : '\n[-]',
- expandText : '\n[+]',
- beforeExpand: function() {
- $(this).removeClass("collapsed");
- $(this).addClass("expanded");
- },
- onCollapse: function() {
- $(this).removeClass("expanded");
- $(this).addClass("collapsed");
- }
- });
-}
/*
@@ -333,5 +315,4 @@ $(document).ready(function() {
setup_months_list();
setup_favorites();
setup_replies();
- setup_expander();
});