Explorar o código

210923 fix no bhouse logo

yukyo0821 %!s(int64=3) %!d(string=hai) anos
pai
achega
7348b3b4df
Modificáronse 1 ficheiros con 15 adicións e 15 borrados
  1. 15 15
      backstage/static/js/yo.js

+ 15 - 15
backstage/static/js/yo.js

@@ -406,7 +406,7 @@ function ParseProductSection(inContent) {
             }
         }
     }
-    else {
+/*     else {
         editorBlocks.push({
             type: "image", data: {
                 file: {
@@ -417,7 +417,7 @@ function ParseProductSection(inContent) {
                 caption: "小寶優居 | " + $('#ctitle').val(),
             }
         });
-    }
+    } */
     //editor.api.blocks.render(editorBlocks);
     $('#editorjs')[0].innerHTML = "";
     editor = new EditorJS({
@@ -511,7 +511,7 @@ function ParseProductSection(inContent) {
             }
         }
     }
-    else {
+    /* else {
         editorBlocks1.push({
             type: "image", data: {
                 file: {
@@ -522,7 +522,7 @@ function ParseProductSection(inContent) {
                 caption: "小寶優居 | " + $('#ctitle').val(),
             }
         });
-    }
+    } */
     $('#editorjs1')[0].innerHTML = "";
     editor1 = new EditorJS({
         readOnly: false,
@@ -586,7 +586,7 @@ function GenProductSection(mimg, specimg) {
           <div class="block ms-md-5 mb-5">
             <div class="title mb-4"><b>##ctitle##</b></div>
             <div class="description">
-              <b>##swfDesc##</b>
+<b>##swfDesc##</b>
             </div>
             <hr>
             <div class="detail">
@@ -618,25 +618,25 @@ function GenProductSection(mimg, specimg) {
     });
     tmpstr = tmpstr.replaceAll('##swfDesc##', $("#swfDesc").val());
     if ($("#swfPrice").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfPrice##', "<div>定價" + $("#swfPrice").val() + "</div>");
+        tmpstr = tmpstr.replaceAll('##swfPrice##', "<div>定價&nbsp;:&nbsp;" + $("#swfPrice").val() + "</div>");
     else
-        tmpstr = tmpstr.replaceAll('##swfPrice##', '');
+        tmpstr = tmpstr.replaceAll('##swfPrice##', '<span></span>');
     if ($("#swfColor").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfColor##', "<div>顏色" + $("#swfColor").val() + "</div>");
+        tmpstr = tmpstr.replaceAll('##swfColor##', "<div>顏色&nbsp;:&nbsp;" + $("#swfColor").val() + "</div>");
     else
-        tmpstr = tmpstr.replaceAll('##swfColor##', '');
+        tmpstr = tmpstr.replaceAll('##swfColor##', '<span></span>');
     if ($("#swfSize").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfSize##', "<div>尺寸(mm)" + $("#swfSize").val() + "</div>");
+        tmpstr = tmpstr.replaceAll('##swfSize##', "<div>尺寸(mm)&nbsp;:&nbsp;" + $("#swfSize").val() + "</div>");
     else
-        tmpstr = tmpstr.replaceAll('##swfSize##', '');
+        tmpstr = tmpstr.replaceAll('##swfSize##', '<span></span>');
     if ($("#swfMat").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfMat##', "<div>材質" + $("#swfMat").val() + "</div>");
+        tmpstr = tmpstr.replaceAll('##swfMat##', "<div>材質&nbsp;:&nbsp;" + $("#swfMat").val() + "</div>");
     else
-        tmpstr = tmpstr.replaceAll('##swfMat##', '');
+        tmpstr = tmpstr.replaceAll('##swfMat##', '<span></span>');
     if ($("#swfMemo").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfMemo##', "<div>備註" + $("#swfMemo").val() + "</div>");
+        tmpstr = tmpstr.replaceAll('##swfMemo##', "<div>備註&nbsp;:&nbsp;" + $("#swfMemo").val() + "</div>");
     else
-        tmpstr = tmpstr.replaceAll('##swfMemo##', '');
+        tmpstr = tmpstr.replaceAll('##swfMemo##', '<span></span>');
 
     mimgstr = "";
     firstimg = true;