Bläddra i källkod

210921 js fix

yukyo0821 3 år sedan
förälder
incheckning
0daceeafe9
1 ändrade filer med 5 tillägg och 10 borttagningar
  1. 5 10
      backstage/static/js/yo.js

+ 5 - 10
backstage/static/js/yo.js

@@ -631,16 +631,11 @@ function GenProductSection(mimg, specimg) {
             tmpstr = tmpstr.replaceAll('##ctypec##', value);
     });
     tmpstr = tmpstr.replaceAll('##swfDesc##', $("#swfDesc").val());
-    if ($("#swfPrice").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfPrice##', "<div>定價 : " + $("#swfPrice").val() + "</div>");
-    if ($("#swfColor").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfColor##', "<div>顏色 : " + $("#swfColor").val() + "</div>");
-    if ($("#swfSize").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfSize##', "<div>尺寸(mm) : " + $("#swfSize").val() + "</div>");
-    if ($("#swfMat").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfMat##', "<div>材質 : " + $("#swfMat").val() + "</div>");
-    if ($("#swfMemo").val() != "")
-        tmpstr = tmpstr.replaceAll('##swfMemo##', "<div>備註 : " + $("#swfMemo").val() + "</div>");
+    tmpstr = tmpstr.replaceAll('##swfPrice##', "<div>定價 : " + $("#swfPrice").val() + "</div>");
+    tmpstr = tmpstr.replaceAll('##swfColor##', "<div>顏色 : " + $("#swfColor").val() + "</div>");
+    tmpstr = tmpstr.replaceAll('##swfSize##', "<div>尺寸(mm) : " + $("#swfSize").val() + "</div>");
+    tmpstr = tmpstr.replaceAll('##swfMat##', "<div>材質 : " + $("#swfMat").val() + "</div>");
+    tmpstr = tmpstr.replaceAll('##swfMemo##', "<div>備註 : " + $("#swfMemo").val() + "</div>");
 
     mimgstr = "";
     firstimg = true;