TheDesk Akane (16.1.3)

This commit is contained in:
cutls
2018-09-19 01:41:48 +09:00
parent 3be7b06010
commit eb57d7f58d
21 changed files with 1437 additions and 39 deletions

View File

@@ -7,11 +7,11 @@ function mdCheck(){
profimg="./img/missing.svg";
}
$("#acct-sel-prof").attr("src",profimg);
if(localStorage.getItem("post_" + acct_id)){
$("#toot-post-btn").text(localStorage.getItem("post_" + acct_id)+"("+localStorage.getItem("domain_"+acct_id)+")");
}else{
$("#toot-post-btn").text(lang_toot[lang]+"("+localStorage.getItem("domain_"+acct_id)+")");
}
if(localStorage.getItem("post_" + acct_id)){
$("#toot-post-btn").text(localStorage.getItem("post_" + acct_id)+"("+localStorage.getItem("domain_"+acct_id)+")");
}else{
$("#toot-post-btn").text(lang_toot[lang]+"("+localStorage.getItem("domain_"+acct_id)+")");
}
if(!localStorage.getItem("bb_"+acct_id) && !localStorage.getItem("md_"+acct_id)){
$(".markdown").addClass("hide");
$(".anti-markdown").addClass("hide");

View File

@@ -90,7 +90,7 @@ function media(b64, type, no) {
} else {
$("#media").val("tmp_"+r);
}
$("#toot-post-btn").prop("disabled", true);
$(".toot-btn-group").prop("disabled", true);
$("#post-acct-sel").prop("disabled", true);
localStorage.setItem("image","busy");
todo("Image Upload...");
@@ -150,7 +150,7 @@ function media(b64, type, no) {
$("#textarea").val($("#textarea").val() + " " + json["text_url"])
}
todc();
$("#toot-post-btn").prop("disabled", false);
$(".toot-btn-group").prop("disabled", false);
$('select').material_select();
$("#mec").text(lang_there[lang]);
Materialize.toast(lang_postimg_aftupload[lang], 1000);

View File

@@ -73,7 +73,7 @@ function post(mode,postvis) {
misskeyPost();
return;
}
$("#toot-post-btn").prop("disabled", true);
$(".toot-btn-group").prop("disabled", true);
todo("Posting");
var at = localStorage.getItem("acct_"+ acct_id + "_at");
var start = "https://" + domain + "/api/v1/statuses";
@@ -130,7 +130,7 @@ function post(mode,postvis) {
$("#textarea").blur();
hide();
}
$("#toot-post-btn").prop("disabled", false);
$(".toot-btn-group").prop("disabled", false);
todc();
clear();
}
@@ -141,7 +141,7 @@ function misskeyPost(){
var acct_id = $("#post-acct-sel").val();
localStorage.setItem("last-use", acct_id);
var domain = localStorage.getItem("domain_" + acct_id);
$("#toot-post-btn").prop("disabled", true);
$(".toot-btn-group").prop("disabled", true);
todo("Posting");
var at = localStorage.getItem("acct_"+ acct_id + "_at");
var start = "https://" + domain + "/api/notes/create";
@@ -204,7 +204,7 @@ function misskeyPost(){
$("body").addClass("mini-post");
$(".mini-btn").text("expand_less");
}
$("#toot-post-btn").prop("disabled", false);
$(".toot-btn-group").prop("disabled", false);
todc();
clear();
}
@@ -245,7 +245,7 @@ function clear() {
$("#nsc").text(lang_nothing[lang]);
$("#drag").css("background-color", "#e0e0e0");
$("#preview").html("");
$("#toot-post-btn").prop("disabled", false);
$(".toot-btn-group").prop("disabled", false);
$("#post-acct-sel").prop("disabled", false);
localStorage.removeItem("image");
if(localStorage.getItem("mainuse")=="main"){