aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-08 19:48:42 +0000
committerMario <mario@mariovavti.com>2021-09-08 19:48:42 +0000
commit7b0f8f289637d06f610230a0fbe7cfe51cd53d6c (patch)
treea23e05fcdcf21abb6b8ab21c70c27ee60d63c702 /view/js
parent25a81ea500746e2451a6c5aaa5a35fe208b61d62 (diff)
downloadvolse-hubzilla-7b0f8f289637d06f610230a0fbe7cfe51cd53d6c.tar.gz
volse-hubzilla-7b0f8f289637d06f610230a0fbe7cfe51cd53d6c.tar.bz2
volse-hubzilla-7b0f8f289637d06f610230a0fbe7cfe51cd53d6c.zip
fix language selector reloading the page if not clicking the icon exactly and bs5 modal issues
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index f54dbf593..476e78056 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -87,8 +87,8 @@ $(document).ready(function() {
if ( typeof(window.tao.zin) == 'undefined' ) {
tao.zin = { syslc: '', syslcs: {}, htm: '', me: '', debug: '' };
tao.zin.axim = '<div class="zinpax fa fa-sync fa-spin"> </div>';
- $('.navbar-app[href*="/lang"]').attr({"data-toggle": "dropdown", "aria-expand": "true", "id": "zintog"})
- .removeAttr('href').addClass('zinlcx zinlcxp dropdown dropdown-toggle');
+ $('.navbar-app[href*="/lang"]').attr({"aria-expand": "true", "id": "zintog"})
+ .removeAttr('href').addClass('zinlcx zinlcxp dropdown dropdown-toggle').css('cursor','pointer');
$('.dropdown-item[href*="/lang"]').addClass('zinlcxmi zinlcx').removeAttr('href').css('cursor','pointer');
}
$('.zinlcx').on('click', function(e) {
@@ -108,11 +108,11 @@ $(document).ready(function() {
tao.zin.htm += '</ul>';
$('.zinpax').remove();
$('.zinlcx').append(tao.zin.htm);
- $('.zinlcxp > ul').addClass('dropdown dropdown-menu dropdown-menu-end').css('left','-16em');
+ $('.zinlcxp > ul').addClass('dropdown dropdown-menu dropdown-menu-end mt-2 show').css('right', 0);
});
return false;
} else {
- if (e.target.id == '') {
+ if (e.target.id == '' || e.target.id == 'zintog') {
// noop click on lang again
return false;
}