|
|
@ -6,60 +6,32 @@ |
|
|
|
<link rel="stylesheet" href="css/style.css" type="text/css" /> |
|
|
|
<link rel="stylesheet" href="css/style.css" type="text/css" /> |
|
|
|
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script> |
|
|
|
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script> |
|
|
|
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script> |
|
|
|
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script> |
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
<script type="text/javascript"> |
|
|
|
var hashes = new URI().getData('hashes').split('|'); |
|
|
|
function $get(key,url){ |
|
|
|
window.addEvent('domready', function(){ |
|
|
|
if(arguments.length < 2) url =location.href; |
|
|
|
|
|
|
|
if(arguments.length > 0 && key != ""){ |
|
|
|
|
|
|
|
if(key == "#"){ |
|
|
|
|
|
|
|
var regex = new RegExp("[#]([^$]*)"); |
|
|
|
|
|
|
|
} else if(key == "?"){ |
|
|
|
|
|
|
|
var regex = new RegExp("[?]([^#$]*)"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
var regex = new RegExp("[?&]"+key+"=([^&#]*)"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var results = regex.exec(url); |
|
|
|
|
|
|
|
return (results == null )? "" : results[1].replace(/%22/g, "'"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
url = url.split("?"); |
|
|
|
|
|
|
|
var results = {}; |
|
|
|
|
|
|
|
if(url.length > 1){ |
|
|
|
|
|
|
|
url = url[1].split("#"); |
|
|
|
|
|
|
|
if(url.length > 1) results["hash"] = url[1]; |
|
|
|
|
|
|
|
url[0].split("&").each(function(item,index){ |
|
|
|
|
|
|
|
item = item.split("="); |
|
|
|
|
|
|
|
results[item[0]] = item[1].replace(/%22/g, "'"); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return results; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var hashes = $get('hashes').split(','); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.addEvent('domready', function(){ |
|
|
|
|
|
|
|
$('cancelBtn').focus(); |
|
|
|
$('cancelBtn').focus(); |
|
|
|
$('cancelBtn').addEvent('click', function(e){ |
|
|
|
$('cancelBtn').addEvent('click', function(e){ |
|
|
|
new Event(e).stop(); |
|
|
|
new Event(e).stop(); |
|
|
|
window.parent.document.getElementById('confirmDeletionPage').parentNode.removeChild(window.parent.document.getElementById('confirmDeletionPage')); |
|
|
|
window.parent.closeWindows(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('confirmBtn').addEvent('click', function(e){ |
|
|
|
$('confirmBtn').addEvent('click', function(e){ |
|
|
|
new Event(e).stop(); |
|
|
|
new Event(e).stop(); |
|
|
|
var cmd = 'command/delete'; |
|
|
|
var cmd = 'command/delete'; |
|
|
|
if($('deleteFromDiskCB').get('checked')) |
|
|
|
if($('deleteFromDiskCB').get('checked')) |
|
|
|
cmd = 'command/deletePerm'; |
|
|
|
cmd = 'command/deletePerm'; |
|
|
|
new Request({url: cmd, |
|
|
|
new Request({ |
|
|
|
|
|
|
|
url: cmd, |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data: {hashes: hashes.join('|')}, |
|
|
|
data: { |
|
|
|
|
|
|
|
'hashes': hashes.join('|') |
|
|
|
|
|
|
|
}, |
|
|
|
onComplete: function() { |
|
|
|
onComplete: function() { |
|
|
|
window.parent.document.getElementById('confirmDeletionPage').parentNode.removeChild(window.parent.document.getElementById('confirmDeletionPage')); |
|
|
|
window.parent.closeWindows(); |
|
|
|
} |
|
|
|
} |
|
|
|
}).send(); |
|
|
|
}).send(); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
</head> |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<body> |
|
|
|
<br/> |
|
|
|
<br/> |
|
|
|