This commit is contained in:
parent
e001df500e
commit
2333e1d422
|
@ -156,5 +156,6 @@
|
||||||
"source": "ソース",
|
"source": "ソース",
|
||||||
"toggle_comment": "トグルコメント",
|
"toggle_comment": "トグルコメント",
|
||||||
"find_in_files": "ファイルから検索",
|
"find_in_files": "ファイルから検索",
|
||||||
"email": "Eメール"
|
"email": "Eメール",
|
||||||
|
"no_empty": "空ではありません"
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,5 +156,6 @@
|
||||||
"source": "源码",
|
"source": "源码",
|
||||||
"toggle_comment": "注释",
|
"toggle_comment": "注释",
|
||||||
"find_in_files": "在文件中查找",
|
"find_in_files": "在文件中查找",
|
||||||
"email": "电子邮件"
|
"email": "电子邮件",
|
||||||
|
"no_empty": "不能为空"
|
||||||
}
|
}
|
|
@ -156,5 +156,6 @@
|
||||||
"source": "源代碼",
|
"source": "源代碼",
|
||||||
"toggle_comment": "註釋",
|
"toggle_comment": "註釋",
|
||||||
"find_in_files": "在文件中查找",
|
"find_in_files": "在文件中查找",
|
||||||
"email": "電子郵件"
|
"email": "電子郵件",
|
||||||
|
"no_empty": "不能為空"
|
||||||
}
|
}
|
|
@ -312,8 +312,8 @@ var menu = {
|
||||||
$("#dialogPreference").find(".tip").html("");
|
$("#dialogPreference").find(".tip").html("");
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0, max = emptys.length; i < max; i++) {
|
for (var i = 0, max = emptys.length; i < max; i++) {
|
||||||
emptysTip += emptys[i].closest('div').data("index") + ' -> ' + emptys[i].attr("name")
|
emptysTip += '[' + emptys[i].closest('div').data("index") + '] -> [' + emptys[i].attr("name")
|
||||||
+ ' ' + config.label.no_empty + "<br/>";
|
+ ']: ' + config.label.no_empty + "<br/>";
|
||||||
}
|
}
|
||||||
$("#dialogPreference").find(".tip").html(emptysTip);
|
$("#dialogPreference").find(".tip").html(emptysTip);
|
||||||
}
|
}
|
||||||
|
@ -351,20 +351,20 @@ var menu = {
|
||||||
$dialogPreference = $("#dialogPreference"),
|
$dialogPreference = $("#dialogPreference"),
|
||||||
$fontFamily = $dialogPreference.find("input[name=fontFamily]"),
|
$fontFamily = $dialogPreference.find("input[name=fontFamily]"),
|
||||||
$fontSize = $dialogPreference.find("input[name=fontSize]"),
|
$fontSize = $dialogPreference.find("input[name=fontSize]"),
|
||||||
$goFmt = $dialogPreference.find("input[name=goFmt]"),
|
$goFmt = $dialogPreference.find("select[name=goFmt]"),
|
||||||
$workspace = $dialogPreference.find("input[name=workspace]"),
|
$workspace = $dialogPreference.find("input[name=workspace]"),
|
||||||
$password = $dialogPreference.find("input[name=password]"),
|
$password = $dialogPreference.find("input[name=password]"),
|
||||||
$email = $dialogPreference.find("input[name=email]"),
|
$email = $dialogPreference.find("input[name=email]"),
|
||||||
$locale = $dialogPreference.find("input[name=locale]"),
|
$locale = $dialogPreference.find("select[name=locale]"),
|
||||||
$theme = $dialogPreference.find("input[name=theme]"),
|
$theme = $dialogPreference.find("select[name=theme]"),
|
||||||
$editorFontFamily = $dialogPreference.find("input[name=editorFontFamily]"),
|
$editorFontFamily = $dialogPreference.find("input[name=editorFontFamily]"),
|
||||||
$editorFontSize = $dialogPreference.find("input[name=editorFontSize]"),
|
$editorFontSize = $dialogPreference.find("input[name=editorFontSize]"),
|
||||||
$editorLineHeight = $dialogPreference.find("input[name=editorLineHeight]"),
|
$editorLineHeight = $dialogPreference.find("input[name=editorLineHeight]"),
|
||||||
$editorTheme = $dialogPreference.find("input[name=editorTheme]"),
|
$editorTheme = $dialogPreference.find("select[name=editorTheme]"),
|
||||||
$editorTabSize = $dialogPreference.find("input[name=editorTabSize]");
|
$editorTabSize = $dialogPreference.find("input[name=editorTabSize]");
|
||||||
|
|
||||||
if ($.trim($email.val()) === "") {
|
if ($.trim($email.val()) === "") {
|
||||||
$dialogPreference.find(".tip").html("user -> email " + config.label.no_empty);
|
$dialogPreference.find(".tip").html("[user] -> [email]: " + config.label.no_empty);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue