This commit is contained in:
yystopf 2021-10-28 10:52:44 +08:00
parent 43dc966cf9
commit 9aff90c03a
1 changed files with 3 additions and 1 deletions

View File

@ -52,6 +52,7 @@ $(document).on('turbolinks:load', function(){
$('.project-list-container').on('click', '.unrecommend-action', function(){
var $uncloseAction = $(this);
var $closeAction = $uncloseAction.siblings('.recommend-action');
var $editAction = $closeAction.siblings('.edit-recommend-action');
var keywordID = $uncloseAction.data('id');
customConfirm({
@ -64,13 +65,14 @@ $(document).on('turbolinks:load', function(){
data: {
project: {
recommend: false,
recommend: 1
recommend_index: 0
}
},
success: function() {
showSuccessNotify();
$closeAction.show();
$uncloseAction.hide();
$editAction.hide();
$(".project-item-"+keywordID).children('td').eq(5).text("")
}
});