mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Generate preview on img clicked only
This commit is contained in:
parent
6e5ed604cd
commit
f2b51fbd2a
@ -20,11 +20,11 @@ $('body').on('click', '#preview-switch', () => {
|
||||
|
||||
var selected = [];
|
||||
|
||||
$('body').on('click', '.item', function () {
|
||||
$('.item-selected').removeClass('item-selected');
|
||||
$(this).addClass('item-selected');
|
||||
$('body').on('click', '.item-body', function () {
|
||||
$('.item-selected').parent().removeClass('item-selected');
|
||||
$(this).parent().addClass('item-selected');
|
||||
|
||||
let tid = $(this).attr('tid');
|
||||
let tid = $(this).parent().attr('tid');
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
|
Loading…
Reference in New Issue
Block a user