diff --git a/app/js/login/login.js b/app/js/login/login.js
index 77b344c3..12d8f781 100644
--- a/app/js/login/login.js
+++ b/app/js/login/login.js
@@ -40,7 +40,7 @@ function ck() {
if (obj[0].domain) {
$("#tl").show();
ticker();
- multiSelector();
+ multiSelector(false);
verck(ver);
$("#something-wrong img").attr("src", "../../img/thinkingdesk.png")
}
@@ -403,7 +403,7 @@ function ckdb(acct_id) {
}
//アカウントを選択…を実装
-function multiSelector() {
+function multiSelector(parseC) {
var multi = localStorage.getItem("multi");
if (!multi) {
var obj = [];
@@ -490,7 +490,9 @@ function multiSelector() {
$("#add-acct-sel").append('');
}
$('select').formSelect();
- parseColumn(true);
+ if(!parseC){
+ parseColumn(true);
+ }
}
//バージョンエンコ
diff --git a/app/js/userdata/showOnTL.js b/app/js/userdata/showOnTL.js
index 64777b6b..b83feb2f 100644
--- a/app/js/userdata/showOnTL.js
+++ b/app/js/userdata/showOnTL.js
@@ -193,6 +193,9 @@ function udg(user, acct_id) {
$("#his-emp-btn").hide();
$(".only-my-data").show();
$(".only-his-data").hide();
+ if(localStorage.getItem("main")==acct_id){
+ $("#his-main-acct").hide();
+ }
} else {
relations(user, acct_id);
$(".only-my-data").hide();
@@ -293,6 +296,9 @@ function misskeyUdg(user, acct_id) {
$("#his-emp-btn").hide();
$(".only-my-data").show();
$(".only-his-data").hide();
+ if(localStorage.getItem("main")==acct_id){
+ $("#his-main-acct").hide();
+ }
} else {
if (json.isFollowing) {
//自分がフォローしている
@@ -409,6 +415,12 @@ function profbrws() {
var url = $("#his-openin").attr("data-href")
postMessage(["openUrl", url], "*")
}
+function setMain() {
+ var acct_id = $("#his-data").attr("use-acct")
+ localStorage.setItem("main", acct_id);
+ multiSelector(true)
+ M.toast({ html: lang.lang_manager_mainAcct, displayLength: 3000 })
+}
//オールリセット
function hisclose() {
$('#his-data').modal('close');
@@ -464,6 +476,7 @@ function reset() {
$("#his-openin").attr("data-href", "");
$("#his-float-timeline").show();
$("#his-float-blocked").hide();
+ $("#his-main-acct").show();
$("#his-proof-prof").html("")
}
$('#my-data-nav .tab').on('click', function () {
diff --git a/app/view/en/index.html b/app/view/en/index.html
index f654269e..270eeb42 100644
--- a/app/view/en/index.html
+++ b/app/view/en/index.html
@@ -465,7 +465,9 @@
Feature on profile
Open in browser
+ onclick="profbrws()">Open in browser
+ Set it an main account