|
@@ -201,11 +201,19 @@ function getDraft() {
|
|
|
</td>
|
|
|
</tr>`
|
|
|
}
|
|
|
+ let titleTxt = '標題';
|
|
|
+ let editTxt = '編輯';
|
|
|
+ let nodraftTxt = '目前沒有草稿喔';
|
|
|
+ if(lan == 'en') {
|
|
|
+ titleTxt = 'Video Title';
|
|
|
+ editTxt = 'Edit';
|
|
|
+ nodraftTxt = 'no_draft';
|
|
|
+ }
|
|
|
str = `<table class="table text-center">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th scope="col" set-lan="html:video_title">標題</th>
|
|
|
- <th class="px-0" scope="col" set-lan="html:draft_edit">編輯</th>
|
|
|
+ <th scope="col" set-lan="html:video_title">${titleTxt}</th>
|
|
|
+ <th class="px-0" scope="col" set-lan="html:draft_edit">${editTxt}</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody class="draft-content">${draftStr}</tbody>
|
|
@@ -214,7 +222,7 @@ function getDraft() {
|
|
|
JsLoadingOverlay.hide();
|
|
|
} else {
|
|
|
str = `<div>
|
|
|
- <h5 set-lan="html:no_draft">目前沒有草稿喔</h5>
|
|
|
+ <h5 set-lan="html:no_draft">${nodraftTxt}</h5>
|
|
|
<img src="static/img/undraw_void_3ggu.svg" width="80">
|
|
|
</div>`;
|
|
|
$('.draft-table .card').html(str);
|
|
@@ -271,8 +279,9 @@ function openNav() {
|
|
|
}).then(res => {
|
|
|
console.log(res.data);
|
|
|
loaded_data = res.data;
|
|
|
+ var historyList = document.querySelector('.historyList');
|
|
|
+ historyList.innerHTML = '';
|
|
|
for (var obj of loaded_data) {
|
|
|
- var historyList = document.querySelector('.historyList');
|
|
|
var list = document.createElement('li');
|
|
|
list.id = obj.id;
|
|
|
// div-imgfr
|