Minor improvements (#1141)

This commit is contained in:
Roman Kelesidis 2023-11-21 00:34:13 +07:00 committed by GitHub
commit 7d6d9adff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 28 deletions

View file

@ -366,13 +366,38 @@ $('#tor-filelist-btn').click(function(){
<!-- IF $bb_cfg['tor_thank'] -->
<style type="text/css">
#thx-block { width: 95%; margin: 12px auto 0; }
#thx-block .sp-wrap { width: 100% !important; }
#thx-btn-div { text-align: center; margin: 0 0 12px; }
#thx-list a { text-decoration: none; }
#thx-list b { font-size: 11px; color: #2E2E2E; white-space: nowrap; }
#thx-list i { font-weight: normal; color: #000000; }
#thx-list u { display: none; }
#thx-block {
width: 95%;
margin: 12px auto 0;
}
#thx-block .sp-wrap {
width: 100% !important;
}
#thx-btn-div {
text-align: center;
margin: 0 0 12px;
}
#thx-list a {
text-decoration: none;
}
#thx-list b {
font-size: 11px;
color: #2E2E2E;
white-space: nowrap;
}
#thx-list i {
font-weight: normal;
color: #000000;
}
#thx-list u {
display: none;
}
</style>
<script type="text/javascript">
BB.thx_btn_clicked = false;
@ -385,7 +410,7 @@ $('#tor-filelist-btn').click(function(){
});
}
ajax.callback.thx = function (data) {
if (data.mode == 'add') {
if (data.mode === 'add') {
$('#thx-btn').hide().after('<h2 style="color: green;">{$lang['THANKS_GRATITUDE']}!<h2>');
BB.thx_btn_clicked = true;
}
@ -412,14 +437,21 @@ $('#tor-filelist-btn').click(function(){
}
});
});
function thx_is_visible() {
return $('#thx-list').is(':visible');
}
function open_thx_list() {
if (!thx_is_visible()){ $thx_head.click(); }
if (!thx_is_visible()) {
$thx_head.click();
}
}
function close_thx_list() {
if (thx_is_visible()){ $thx_head.click(); }
if (thx_is_visible()) {
$thx_head.click();
}
}
</script>
@ -433,7 +465,6 @@ $('#tor-filelist-btn').click(function(){
</div>
<!-- ENDIF -->
<div class="spacer_12"></div>
<!-- ENDIF -->
<!-- END tor_reged -->