|
|
@@ -26,15 +26,15 @@ function my_article_list() {
|
|
|
"<div style='flex:2;'>" +
|
|
|
render_status(iterator.status) +
|
|
|
"</div>";
|
|
|
- html += "<div style='flex:1;'>Copy Link</div>";
|
|
|
+ html += "<div style='flex:1;'>" + gLocal.gui.copy_link + "</div>";
|
|
|
html +=
|
|
|
"<div style='flex:1;'><a href='../article/my_article_edit.php?id=" +
|
|
|
iterator.id +
|
|
|
- "'>Edit</a></div>";
|
|
|
+ "'>" + gLocal.gui.edit + "</a></div>";
|
|
|
html +=
|
|
|
"<div style='flex:1;'><a href='../article/?id=" +
|
|
|
iterator.id +
|
|
|
- "' target='_blank'>Preview</a></div>";
|
|
|
+ "' target='_blank'>" + gLocal.gui.preview + "</a></div>";
|
|
|
html += "<div style='flex:1;'>15</div>";
|
|
|
html += "</div>";
|
|
|
}
|
|
|
@@ -53,9 +53,9 @@ function render_status(status) {
|
|
|
status = parseInt(status);
|
|
|
let html = "";
|
|
|
let objStatus = [
|
|
|
- { id: 1, name: "私有", tip: "仅自己可见" },
|
|
|
- { id: 2, name: "不公开列出", tip: "不能被搜索到,只能通过链接访问" },
|
|
|
- { id: 3, name: "公开", tip: "所有人均可看到" },
|
|
|
+ { id: 1, name: gLocal.gui.private, tip: gLocal.gui.private_note },
|
|
|
+ { id: 2, name: gLocal.gui.unlisted, tip: gLocal.gui.unlisted_note },
|
|
|
+ { id: 3, name: gLocal.gui.public, tip: gLocal.gui.public_note },
|
|
|
];
|
|
|
html += '<div class="case_dropdown">';
|
|
|
html += '<input type="hidden" name="status" value ="' + status + '" />';
|
|
|
@@ -108,8 +108,8 @@ function my_article_edit(id) {
|
|
|
result.status +
|
|
|
"'/>";
|
|
|
|
|
|
- html += "<button onclick='article_preview()'>Preview</button>";
|
|
|
- html += "<input type='checkbox' name='import' />Import Data";
|
|
|
+ html += "<button onclick='article_preview()'>" + gLocal.gui.preview + "</button>";
|
|
|
+ html += "<input type='checkbox' name='import' />" + gLocal.gui.import + gLocal.gui.text;
|
|
|
html += "</div>";
|
|
|
html += "<div style='display:flex;'>";
|
|
|
html += "<div style='flex:4;'>";
|
|
|
@@ -162,7 +162,7 @@ function my_article_save() {
|
|
|
console.log(result); //打印服务端返回的数据(调试用)
|
|
|
|
|
|
if (result.status == 0) {
|
|
|
- alert("保存成功");
|
|
|
+ alert(gLocal.gui.saved + gLocal.gui.successful);
|
|
|
} else {
|
|
|
alert("error:" + result.message);
|
|
|
}
|
|
|
@@ -198,7 +198,7 @@ function course_validate_required(field, alerttxt) {
|
|
|
|
|
|
function course_validate_form(thisform) {
|
|
|
with (thisform) {
|
|
|
- if (course_validate_required(title, "Title must be filled out!") == false) {
|
|
|
+ if (course_validate_required(title, gLocal.gui.title_necessary + "!") == false) {
|
|
|
title.focus();
|
|
|
return false;
|
|
|
}
|