Browse Source

HPCC-9428 Remove @ sign from Deleting File confirmation

A @ sign after a filename is used to pass cluster information to
Delete Logical File function. But. the @ sign should not be shown
inside the confirmation message for deleting the file. This fix
removes the @ sign from the confirmation message.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Kevin Wang 12 years ago
parent
commit
43ae537150
1 changed files with 5 additions and 1 deletions
  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;