about #141 themes toast shows undifined
This commit is contained in:
parent
cacf7f9920
commit
5f9ddd969e
|
@ -71,7 +71,7 @@ var postView = new Vue({
|
||||||
//設定ボタン押した。
|
//設定ボタン押した。
|
||||||
function settings() {
|
function settings() {
|
||||||
var cd = $("[name=theme]:checked").val();
|
var cd = $("[name=theme]:checked").val();
|
||||||
var ct = $("[for=" + cd + "]").html();
|
var ct = $("[data-ct=" + cd + "]").html();
|
||||||
if (cd == "custom" && !$("#custom-sel-sel").val()) {
|
if (cd == "custom" && !$("#custom-sel-sel").val()) {
|
||||||
var theme = localStorage.getItem("theme");
|
var theme = localStorage.getItem("theme");
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
|
|
|
@ -108,33 +108,33 @@
|
||||||
<h4>@@themeSel@@</h4>
|
<h4>@@themeSel@@</h4>
|
||||||
<label>
|
<label>
|
||||||
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="black" value="black" />
|
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="black" value="black" />
|
||||||
<span>Black</span>
|
<span data-ct="black">Black</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="white" value="white" />
|
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="white" value="white" />
|
||||||
<span>White</span>
|
<span data-ct="white">White</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="indigo"
|
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="indigo"
|
||||||
value="indigo" />
|
value="indigo" />
|
||||||
<span>Indigo<span class="imas hide">(エンドレスナイト)</span></span>
|
<span data-ct="indigo">Indigo<span class="imas hide">(エンドレスナイト)</span></span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="brown" value="brown" />
|
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="brown" value="brown" />
|
||||||
<span>Brown<span class="imas hide">(ビタースイート・タイム)</span></span>
|
<span data-ct="brown">Brown<span class="imas hide">(ビタースイート・タイム)</span></span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="green" value="green" />
|
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="green" value="green" />
|
||||||
<span>Green<span class="imas hide">(ユースフルロマンス)</span></span>
|
<span data-ct="green">Green<span class="imas hide">(ユースフルロマンス)</span></span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="blue" value="blue" />
|
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="blue" value="blue" />
|
||||||
<span>Blue<span class="imas hide">(渚の花嫁)</span></span>
|
<span data-ct="blue">Blue<span class="imas hide">(渚の花嫁)</span></span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="custom"
|
<input class="with-gap" onchange="settings()" name="theme" type="radio" id="custom"
|
||||||
value="custom" />
|
value="custom" />
|
||||||
<span>custom</span>
|
<span data-ct="custom">custom</span>
|
||||||
</label>
|
</label>
|
||||||
<div style="width:300px" id="sel-selector">
|
<div style="width:300px" id="sel-selector">
|
||||||
<select id="custom-sel-sel" class="custom-sel" onchange="customSel()"></select>
|
<select id="custom-sel-sel" class="custom-sel" onchange="customSel()"></select>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user