aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js/redbasic.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-28 19:29:42 +0200
committerMario Vavti <mario@mariovavti.com>2017-03-28 19:29:42 +0200
commit28ad60f892f1cdebe704e4bc1aa964d3366f4dcf (patch)
treec3aa5b89d9515937ff36ba2e94910fa108f4f769 /view/theme/redbasic/js/redbasic.js
parent171b6a222d164e157ebaaba6ee177ccbb6c14514 (diff)
downloadvolse-hubzilla-28ad60f892f1cdebe704e4bc1aa964d3366f4dcf.tar.gz
volse-hubzilla-28ad60f892f1cdebe704e4bc1aa964d3366f4dcf.tar.bz2
volse-hubzilla-28ad60f892f1cdebe704e4bc1aa964d3366f4dcf.zip
some fixes for latest bs-dev
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r--view/theme/redbasic/js/redbasic.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 14b977b80..4d9a1d6cc 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -3,6 +3,13 @@
*/
$(document).ready(function() {
+ //this is a hotfix to make collapsible bs panels work again. this needs fixing in templates.
+ $('a').on('click', function(e) {
+ if($(this).data('toggle') == 'collapse') {
+ e.preventDefault();
+ }
+ });
+
// CSS3 calc() fallback (for unsupported browsers)
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');
if( $('#css3-calc').width() == 10) {