|
@@ -101,6 +101,9 @@
|
|
|
function copyDFUFile() {
|
|
|
document.location.href='/FileSpray/CopyInput?sourceLogicalName='+filename;
|
|
|
}
|
|
|
+ function renameDFUFile() {
|
|
|
+ document.location.href='/FileSpray/RenameInput?sourceLogicalName='+filename;
|
|
|
+ }
|
|
|
function desprayDFUFile()
|
|
|
{
|
|
|
document.location.href='/FileSpray/DesprayInput?sourceLogicalName='+filename;
|
|
@@ -116,76 +119,35 @@
|
|
|
oMenu = new YAHOO.widget.Menu("logicalfilecontextmenu", {position: "dynamic", xy: xypos} );
|
|
|
oMenu.clearContent();
|
|
|
|
|
|
- if (roxiecluster != 0) {
|
|
|
- if (browsedata != 0) {
|
|
|
- if (replicate != 0) {
|
|
|
oMenu.addItems([
|
|
|
{ text: "Details", onclick: { fn: detailsDFUFile } },
|
|
|
- { text: "View Data File", onclick: { fn: searchDFUData } },
|
|
|
- { text: "Replicate", onclick: { fn: replicateDFUFile } },
|
|
|
{ text: "Copy", onclick: { fn: copyDFUFile } },
|
|
|
- { text: "Despray", onclick: { fn: desprayDFUFile } },
|
|
|
- { text: "ShowQuery", onclick: { fn: showRoxieQueries } }
|
|
|
+ { text: "Rename", onclick: { fn: renameDFUFile } }
|
|
|
]);
|
|
|
- } else {
|
|
|
+
|
|
|
+ if (browsedata != 0) {
|
|
|
oMenu.addItems([
|
|
|
- { text: "Details", onclick: { fn: detailsDFUFile } },
|
|
|
- { text: "View Data File", onclick: { fn: searchDFUData } },
|
|
|
- { text: "Copy", onclick: { fn: copyDFUFile } },
|
|
|
- { text: "ShowQuery", onclick: { fn: showRoxieQueries } }
|
|
|
+ { text: "View Data File", onclick: { fn: searchDFUData } }
|
|
|
]);
|
|
|
}
|
|
|
- } else {
|
|
|
+
|
|
|
if (replicate != 0) {
|
|
|
oMenu.addItems([
|
|
|
- { text: "Details", onclick: { fn: detailsDFUFile } },
|
|
|
- { text: "Replicate", onclick: { fn: replicateDFUFile } },
|
|
|
- { text: "Copy", onclick: { fn: copyDFUFile } },
|
|
|
- { text: "ShowQuery", onclick: { fn: showRoxieQueries } }
|
|
|
- ]);
|
|
|
- } else {
|
|
|
- oMenu.addItems([
|
|
|
- { text: "Details", onclick: { fn: detailsDFUFile } },
|
|
|
- { text: "Copy", onclick: { fn: copyDFUFile } },
|
|
|
- { text: "ShowQuery", onclick: { fn: showRoxieQueries } }
|
|
|
+ { text: "Replicate", onclick: { fn: replicateDFUFile } }
|
|
|
]);
|
|
|
}
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (browsedata != 0) {
|
|
|
- if (replicate != 0) {
|
|
|
- oMenu.addItems([
|
|
|
- { text: "Details", onclick: { fn: detailsDFUFile } },
|
|
|
- { text: "View Data File", onclick: { fn: searchDFUData } },
|
|
|
- { text: "Replicate", onclick: { fn: replicateDFUFile } },
|
|
|
- { text: "Copy", onclick: { fn: copyDFUFile } },
|
|
|
- { text: "Despray", onclick: { fn: desprayDFUFile } },
|
|
|
- ]);
|
|
|
- } else {
|
|
|
+
|
|
|
+ if (roxiecluster != 0) {
|
|
|
oMenu.addItems([
|
|
|
- { text: "Details", onclick: { fn: detailsDFUFile } },
|
|
|
- { text: "View Data File", onclick: { fn: searchDFUData } },
|
|
|
- { text: "Copy", onclick: { fn: copyDFUFile } },
|
|
|
- { text: "Despray", onclick: { fn: desprayDFUFile } },
|
|
|
+ { text: "ShowQuery", onclick: { fn: showRoxieQueries } }
|
|
|
]);
|
|
|
}
|
|
|
- } else {
|
|
|
- if (replicate != 0) {
|
|
|
- oMenu.addItems([
|
|
|
- { text: "Details", onclick: { fn: detailsDFUFile } },
|
|
|
- { text: "Replicate", onclick: { fn: replicateDFUFile } },
|
|
|
- { text: "Copy", onclick: { fn: copyDFUFile } },
|
|
|
- { text: "Despray", onclick: { fn: desprayDFUFile } },
|
|
|
- ]);
|
|
|
- } else {
|
|
|
+ else {
|
|
|
oMenu.addItems([
|
|
|
- { text: "Details", onclick: { fn: detailsDFUFile } },
|
|
|
- { text: "Copy", onclick: { fn: copyDFUFile } },
|
|
|
- { text: "Despray", onclick: { fn: desprayDFUFile } },
|
|
|
+ { text: "Despray", onclick: { fn: desprayDFUFile } }
|
|
|
]);
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
//showPopup(menu,(window.event ? window.event.screenX : 0), (window.event ? window.event.screenY : 0));
|
|
|
oMenu.render("dfulogicalfilemenu");
|
|
|
oMenu.show();
|