|
@@ -7,16 +7,16 @@
|
|
|
// });
|
|
|
|
|
|
$(".sendbox").hide();
|
|
|
-$(document).on("click", ".collectcard", function (event) {
|
|
|
- // $(this).siblings('.collectcard').removeClass('select');
|
|
|
+$(document).on("click",".collectcontent",function (event) {
|
|
|
$(".sendbox").show(500);
|
|
|
- $(this).toggleClass("select");
|
|
|
+ $(this).addClass("select");
|
|
|
+ $(".select").siblings().removeClass('select');
|
|
|
});
|
|
|
|
|
|
$(document).on("click", ".close", function (event) {
|
|
|
// $(this).siblings('.collectcard').removeClass('select');
|
|
|
$(".sendbox").hide(500);
|
|
|
- $(".collectcard").removeClass("select");
|
|
|
+ $(".collectcontent").removeClass("select");
|
|
|
});
|
|
|
|
|
|
// 收藏頁面
|
|
@@ -28,8 +28,8 @@ $(document).ready(function () {
|
|
|
var collectuserid = getcollect[1];
|
|
|
$.ajax({
|
|
|
method: "GET",
|
|
|
- url: "https://api.ptt.cx:8228/collection/" + collectuserid + "",
|
|
|
- // url:"https://api.ptt.cx:8228/collection/Uf161c92b16f84357987a78c2b4b47719",
|
|
|
+ // url: "https://api.ptt.cx:8228/collection/" + collectuserid + "",
|
|
|
+ url:"https://api.ptt.cx:8228/collection/Uf161c92b16f84357987a78c2b4b47719",
|
|
|
dataType: "json",
|
|
|
})
|
|
|
.done(function (msg) {
|