소스 검색

Merge pull request #4496 from wangkx/h9428

HPCC-9428 Remove @ sign from Deleting File confirmation

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 12 년 전
부모
커밋
b9a3b97e94
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      esp/eclwatch/ws_XSLT/dfu_file.xslt

+ 5 - 1
esp/eclwatch/ws_XSLT/dfu_file.xslt

@@ -97,7 +97,11 @@
                          {
                          {
                             if (button == "Delete")
                             if (button == "Delete")
                             {
                             {
-                                if (confirm("Are you sure you want to delete "+ filename+ "?"))
+                                var val = filename;
+                                var pt = val.indexOf("@");
+                                if (pt > 0)
+                                    val = val.substring(0, pt);
+                                if (confirm("Are you sure you want to delete "+ val+ "?"))
                                 {
                                 {
                                     document.location.href="/WsDFU/DFUArrayAction?Type=Delete&LogicalFiles_i0=" + filename;
                                     document.location.href="/WsDFU/DFUArrayAction?Type=Delete&LogicalFiles_i0=" + filename;
                                     return true;
                                     return true;