update
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
// 未登录
|
||||
if (!uid || isNaN(uid)) {
|
||||
$('#login_register').show()
|
||||
$('#login_register').click()
|
||||
$('#logout_a').hide()
|
||||
$('#newMindModal_btn').hide()
|
||||
} else {
|
||||
@@ -100,7 +101,7 @@
|
||||
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="window.open('detail?id=${item.id}')">编辑</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.del_mind(${item.id},'card_${uuid}')">删除</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);">分享</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.share_mind(${item.id})">分享</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -165,6 +166,21 @@
|
||||
async: false
|
||||
});
|
||||
},
|
||||
/**分享脑图*/
|
||||
share_mind: function (mind_id) {
|
||||
const me = this
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "share",
|
||||
headers: {"X-CSRFToken": $.cookie("csrftoken")},
|
||||
data: {'id': mind_id},
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
console.log(data)
|
||||
},
|
||||
async: false
|
||||
});
|
||||
},
|
||||
/** 清除注册时输入内容 */
|
||||
clear_reg_info: function () {
|
||||
$('#userName').val('');
|
||||
|
||||
Reference in New Issue
Block a user