瀏覽代碼

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 (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;
                                     return true;