Vote button code improvements (#1143)

* Vote button code improvements

* Update viewtopic_attach.tpl

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-11-21 01:06:48 +07:00 committed by GitHub
commit fc1500f9d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View file

@ -5,7 +5,7 @@
**Merged pull requests:** **Merged pull requests:**
- Vote button code improvements [\#1140](https://github.com/torrentpier/torrentpier/pull/1140), [\#1142](https://github.com/torrentpier/torrentpier/pull/1142) ([belomaxorka](https://github.com/belomaxorka)) - Vote button code improvements [\#1140](https://github.com/torrentpier/torrentpier/pull/1140), [\#1142](https://github.com/torrentpier/torrentpier/pull/1142), [\#1143](https://github.com/torrentpier/torrentpier/pull/1143) ([belomaxorka](https://github.com/belomaxorka))
- Vote button and v2 file list topic url display [\#1138](https://github.com/torrentpier/torrentpier/pull/1138) ([kovalensky](https://github.com/kovalensky)) - Vote button and v2 file list topic url display [\#1138](https://github.com/torrentpier/torrentpier/pull/1138) ([kovalensky](https://github.com/kovalensky))
- Removed topic watch useless code [\#1137](https://github.com/torrentpier/torrentpier/pull/1137) ([belomaxorka](https://github.com/belomaxorka)) - Removed topic watch useless code [\#1137](https://github.com/torrentpier/torrentpier/pull/1137) ([belomaxorka](https://github.com/belomaxorka))
- Fixed topic_watch array key name [\#1136](https://github.com/torrentpier/torrentpier/pull/1136) ([belomaxorka](https://github.com/belomaxorka)) - Fixed topic_watch array key name [\#1136](https://github.com/torrentpier/torrentpier/pull/1136) ([belomaxorka](https://github.com/belomaxorka))

View file

@ -415,21 +415,14 @@ $('#tor-filelist-btn').click(function(){
BB.thx_btn_clicked = true; BB.thx_btn_clicked = true;
} }
$('#thx-list').html(data.html); $('#thx-list').html(data.html);
$('#thx-list b').after(' ');
open_thx_list(); open_thx_list();
$('#thx-list b').each(function () {
var uid = $(this).find('u').text();
if (uid > 0) {
$(this).wrap('<a href="./profile.php?mode=viewprofile&amp;u=' + uid + '"></a>');
}
});
} }
$(function () { $(function () {
$thx_head = $('#thx-block').find('.sp-head'); $thx_head = $('#thx-block').find('.sp-head');
close_thx_list(); close_thx_list();
$('#thx-btn').one('click', function () { $('#thx-btn').one('click', function () {
$(this).prop({disabled: true});
ajax.thx('add'); ajax.thx('add');
$(this).prop({disabled: true});
}); });
$thx_head.one('click', function () { $thx_head.one('click', function () {
if (!BB.thx_btn_clicked) { if (!BB.thx_btn_clicked) {