mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Vote button code improvements (#1143)
* Vote button code improvements * Update viewtopic_attach.tpl * Update CHANGELOG.md
This commit is contained in:
parent
a4be40db9e
commit
fc1500f9d9
2 changed files with 2 additions and 9 deletions
|
@ -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))
|
||||||
|
|
|
@ -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&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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue