This commit is contained in:
cutls
2020-07-09 17:03:22 +09:00
parent 414782fd71
commit 0bf3f69a28
20 changed files with 61 additions and 55 deletions

View File

@@ -45,7 +45,7 @@ function mdCheck() {
$('#trendtag').html('')
}
if (localStorage.getItem('mode_' + domain) == 'misskey') {
M.toast({ html: lang.lang_bbmd_misskey, displayLength: 5000 })
Mtoast({ html: lang.lang_bbmd_misskey, displayLength: 5000 })
}
if (idata[domain + '_letters']) {
$('#textarea').attr('data-length', idata[domain + '_letters'])

View File

@@ -156,7 +156,7 @@ async function media(b64, type, no, stamped) {
$('.toot-btn-group').prop('disabled', false)
//$('select').formSelect()
$('#mec').text(lang.lang_there)
M.toast({ html: '<span>' + lang.lang_postimg_sync + '</span><button class="btn-flat toast-action" onclick="syncDetail()">Click</button>', displayLength: 3000 })
Mtoast({ html: '<span>' + lang.lang_postimg_sync + '</span><button class="btn-flat toast-action" onclick="syncDetail()">Click</button>', displayLength: 3000 })
$('#imgup').text('')
$('#imgsel').show()
localStorage.removeItem('image')
@@ -178,7 +178,7 @@ async function media(b64, type, no, stamped) {
$('.toot-btn-group').prop('disabled', false)
//$('select').formSelect()
$('#mec').text(lang.lang_there)
M.toast({ html: this.status + ':' +json, displayLength: 2000 })
Mtoast({ html: this.status + ':' +json, displayLength: 2000 })
$('#imgup').text('')
$('#imgsel').show()
}
@@ -189,7 +189,7 @@ async function media(b64, type, no, stamped) {
$('#post-acct-sel').prop('disabled', false)
//$('select').formSelect()
$('#imgsel').show()
M.toast({ html: lang.lang_postimg_failupload, displayLength: 5000 })
Mtoast({ html: lang.lang_postimg_failupload, displayLength: 5000 })
return false
}
$('#imgup').text('')

View File

@@ -49,7 +49,7 @@ function fav(id, acct_id, remote) {
$('.fav_' + id).addClass('yellow-text')
}
} else {
M.toast({ html: lang.lang_status_favWarn, displayLength: 1000 })
Mtoast({ html: lang.lang_status_favWarn, displayLength: 1000 })
}
}
}
@@ -240,7 +240,7 @@ async function acctResolve(acct_id, user) {
if (idJson.accounts[0]) {
var id = idJson.accounts[0].id
} else {
M.toast({ html: lang.lang_fatalerroroccured, displayLength: 2000 })
Mtoast({ html: lang.lang_fatalerroroccured, displayLength: 2000 })
}
return id
}
@@ -580,7 +580,7 @@ function empUser() {
if (!obj) {
var obj = []
obj.push(id)
M.toast({ html: id + lang.lang_status_emphas, displayLength: 4000 })
Mtoast({ html: id + lang.lang_status_emphas, displayLength: 4000 })
} else {
var can
Object.keys(obj).forEach(function(key) {
@@ -590,7 +590,7 @@ function empUser() {
} else {
can = true
obj.splice(key, 1)
M.toast({ html: id + lang.lang_status_unemphas, displayLength: 4000 })
Mtoast({ html: id + lang.lang_status_unemphas, displayLength: 4000 })
}
})
}
@@ -634,7 +634,7 @@ function pinUser() {
//URLコピー
function tootUriCopy(url) {
execCopy(url)
M.toast({ html: lang.lang_details_url, displayLength: 1500 })
Mtoast({ html: lang.lang_details_url, displayLength: 1500 })
}
//他のアカウントで…