TheDesk Mizuki (ver.2)
This commit is contained in:
@@ -80,11 +80,13 @@ function notf(acct_id, tlid, sys) {
|
||||
var templete="";
|
||||
localStorage.setItem("lastnotf_" + acct_id,obj.id);
|
||||
if(obj.type!="follow"){
|
||||
templete = templete+parse([obj], 'notf', acct_id, tlid, popup);
|
||||
templete = parse([obj], 'notf', acct_id, tlid, popup);
|
||||
}else{
|
||||
templete = templete+userparse([obj], 'notf', acct_id, tlid, popup);
|
||||
templete = userparse([obj], 'notf', acct_id, tlid, popup);
|
||||
}
|
||||
if(!$("div[data-notfIndv=" + acct_id +"_"+obj.id+"]").length){
|
||||
$("div[data-notf=" + acct_id +"]").prepend(templete);
|
||||
}
|
||||
$("div[data-notf=" + acct_id +"]").prepend(templete);
|
||||
jQuery("time.timeago").timeago();
|
||||
} else if (type == "delete") {
|
||||
$("[toot-id=" + obj + "]").hide();
|
||||
@@ -151,8 +153,5 @@ function notfmore(tlid) {
|
||||
function notfToggle(acct, tlid) {
|
||||
$("#notf-box_" + tlid).toggleClass("hide");
|
||||
$("#notf-box_" + tlid).toggleClass("show");
|
||||
if (!$("#notf-box_" + tlid).hasClass("fetched")) {
|
||||
notf(acct, tlid);
|
||||
}
|
||||
$(".notf-icon_" + acct).removeClass("red-text");
|
||||
}
|
||||
|
@@ -134,8 +134,10 @@ function parse(obj, mix, acct_id, tlid, popup) {
|
||||
localStorage.setItem("notice-mem", noticetext);
|
||||
noticetext = "";
|
||||
}
|
||||
var if_notf='data-notfIndv="'+acct_id+"_"+toot.id+'"';
|
||||
var toot = toot.status;
|
||||
}else{
|
||||
var if_notf="";
|
||||
if (toot.reblog) {
|
||||
var rebtxt = "がブースト";
|
||||
if(localStorage.getItem("domain_" + acct_id)=="imastodon.net" && !locale){
|
||||
@@ -405,7 +407,7 @@ function parse(obj, mix, acct_id, tlid, popup) {
|
||||
templete = templete + '<div id="pub_' + toot.id + '" class="cvo ' +
|
||||
boostback + ' ' + fav_app + ' ' + rt_app + ' ' + pin_app +
|
||||
' ' + hasmedia + '" toot-id="' + id + '" unixtime="' + date(obj[
|
||||
key].created_at, 'unix') + '">' +
|
||||
key].created_at, 'unix') + '" '+if_notf+'>' +
|
||||
'<div class="area-notice"><span class="gray sharesta">' + notice + home +
|
||||
'</span></div>' +
|
||||
'<div class="area-icon"><a onclick="udg(\'' + toot.account.id +
|
||||
|
Reference in New Issue
Block a user