This commit is contained in:
2021-10-27 16:58:31 +08:00
parent 91852d7957
commit f0580720e3
2 changed files with 6 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ $(document).on('turbolinks:load', function(){
$('.project-list-container').on('click', '.recommend-action', function(){
var $closeAction = $(this);
var $uncloseAction = $closeAction.siblings('.unrecommend-action');
var $editAction = $closeAction.siblings('.edit-recommend-action');
var keywordID = $closeAction.data('id');
customConfirm({
@@ -39,6 +40,7 @@ $(document).on('turbolinks:load', function(){
showSuccessNotify();
$closeAction.hide();
$uncloseAction.show();
$editAction.show();
$(".project-item-"+keywordID).children('td').eq(5).text("√")
}
});