Pārlūkot izejas kodu

Merge pull request #1639 from wangkx/gh1630

EclWatch/Spray should displays local warning for user error

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 gadi atpakaļ
vecāks
revīzija
8c8afd15fa
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      esp/eclwatch/ws_XSLT/fs_sprayForm.xslt

+ 10 - 0
esp/eclwatch/ws_XSLT/fs_sprayForm.xslt

@@ -249,6 +249,16 @@
                 alert("Please specify a file in the Local Path field.");
                 alert("Please specify a file in the Local Path field.");
                 return false;
                 return false;
               }
               }
+              if ((method == 'SprayFixed') && (document.getElementById("sourceRecordSize").value == ''))
+              {
+                alert("Please specify a Record Length.");
+                return false;
+              }
+              if (document.getElementById("label").value == '')
+              {
+                alert("Please specify a name for destination file in the Destination Label field.");
+                return false;
+              }
               return true;
               return true;
             }
             }
       ]]></script>
       ]]></script>