mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Minor improvements (#1141)
This commit is contained in:
parent
c046e8a8c1
commit
7d6d9adff2
2 changed files with 59 additions and 28 deletions
|
@ -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 -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue