Browse Source

儲存草稿功能英文化

Mike 3 years ago
parent
commit
ee57846fff
1 changed files with 13 additions and 6 deletions
  1. 13 6
      html/static/script_util.js

+ 13 - 6
html/static/script_util.js

@@ -287,11 +287,11 @@ $("#send_slide").click(function () {
   xhr.onreadystatechange = function () {
     if (xhr.readyState === 4) {
       let title = "資料已送出";
-        let text = '資料已傳送,請耐心等候';
-        if (lang == 'en') { // 英文版訊息
-          title = "Submitted Successfully!";
-          text = 'We are working on your video. You will get notfication in line group when your video is done.';
-        }
+      let text = '資料已傳送,請耐心等候';
+      if (lang == 'en') { // 英文版訊息
+        title = "Submitted Successfully!";
+        text = 'We are working on your video. You will get notfication in line group when your video is done.';
+      }
       Swal.fire({
         title: title,
         icon: 'success',
@@ -648,7 +648,14 @@ $('.owl-carousel').owlCarousel({
 });
 
 $('.draft-btn').click(() => {
-  $('.draft-btn').text('Loading...');
+  let text = '儲存中...';
+
+  if (lang == 'en') {
+    text = 'Saving...';
+  }
+
+  $('.draft-btn').text(text);
+
   let jwt_token = get_jwt_token();
   let avatar = $('.avatar').val();
   let name_title = $('.title_new').val();