fix: utl loading
This commit is contained in:
parent
dd0e1279c4
commit
7e6d03fd53
|
@ -1345,6 +1345,7 @@ function getBookmark(acct_id, tlid, more) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function getUtl(acct_id, tlid, data, more) {
|
function getUtl(acct_id, tlid, data, more) {
|
||||||
|
|
||||||
moreloading = true
|
moreloading = true
|
||||||
if (more) {
|
if (more) {
|
||||||
var sid = $('#timeline_' + tlid + ' .cvo')
|
var sid = $('#timeline_' + tlid + ' .cvo')
|
||||||
|
|
|
@ -825,11 +825,16 @@ function unstreamingTL(type, key, basekey, insert, icnsert, left_fold, css, anim
|
||||||
${lang.lang_layout_leftUnfold}
|
${lang.lang_layout_leftUnfold}
|
||||||
</span><br>`
|
</span><br>`
|
||||||
}
|
}
|
||||||
|
if(type == 'utl') {
|
||||||
|
var dataHtml = false
|
||||||
|
} else {
|
||||||
|
var dataHtml = data
|
||||||
|
}
|
||||||
var html = `<div class="boxIn" id="timeline_box_${key}_box" tlid="${key}">
|
var html = `<div class="boxIn" id="timeline_box_${key}_box" tlid="${key}">
|
||||||
<div class="notice-box z-depth-2" id="menu_${key}" style="${insert} ">
|
<div class="notice-box z-depth-2" id="menu_${key}" style="${insert} ">
|
||||||
<div class="area-notice">
|
<div class="area-notice">
|
||||||
<i class="material-icons waves-effect" id="notice_icon_${key}" style="font-size:40px; padding-top:25%;"
|
<i class="material-icons waves-effect" id="notice_icon_${key}" style="font-size:40px; padding-top:25%;"
|
||||||
onclick="${type}('${key}','${data}');" title="${lang.lang_layout_gotop}"></i>
|
onclick="${type}('${key}','${dataHtml}');" title="${lang.lang_layout_gotop}"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="area-notice_name">
|
<div class="area-notice_name">
|
||||||
<span id="notice_${key}" class="tl-title"></span>
|
<span id="notice_${key}" class="tl-title"></span>
|
||||||
|
@ -890,6 +895,13 @@ function bookmark(key, data) {
|
||||||
tl('bookmark', '', data, key, 'false', voice, '')
|
tl('bookmark', '', data, key, 'false', voice, '')
|
||||||
}
|
}
|
||||||
function utl(key, acct_id, data) {
|
function utl(key, acct_id, data) {
|
||||||
|
if(!data) {
|
||||||
|
var multi = localStorage.getItem('column')
|
||||||
|
var obj = JSON.parse(multi)
|
||||||
|
data = obj[key].data
|
||||||
|
acct_id = obj[key].domain
|
||||||
|
}
|
||||||
|
|
||||||
console.log(key, data)
|
console.log(key, data)
|
||||||
if (localStorage.getItem('voice_' + key)) {
|
if (localStorage.getItem('voice_' + key)) {
|
||||||
var voice = true
|
var voice = true
|
||||||
|
|
|
@ -30,7 +30,7 @@ function tips(mode) {
|
||||||
localStorage.getItem('ver') +
|
localStorage.getItem('ver') +
|
||||||
' git: ' +
|
' git: ' +
|
||||||
gitHash +
|
gitHash +
|
||||||
'\')">TheDesk ' +
|
'\')"> ' +
|
||||||
localStorage.getItem('ver') +
|
localStorage.getItem('ver') +
|
||||||
' {' +
|
' {' +
|
||||||
gitHash.slice(0, 7) +
|
gitHash.slice(0, 7) +
|
||||||
|
|
Loading…
Reference in New Issue
Block a user