|
@@ -122,6 +122,7 @@
|
|
<span class="restorePoint">N/A</span><br>
|
|
<span class="restorePoint">N/A</span><br>
|
|
<span class="deleteTime">N/A</span><br>
|
|
<span class="deleteTime">N/A</span><br>
|
|
<span class="deleteRemainingTime">N/A</span><br>
|
|
<span class="deleteRemainingTime">N/A</span><br>
|
|
|
|
+ <button id="snapshotSummaryBtn" class="ui mini button" style="display:none;" onclick="openSnapshotInfo();">View Snapshot Summary</button>
|
|
<button class="circular ui icon basic small button closebtn" onclick='$("#fileinfo").slideUp("fast");'>
|
|
<button class="circular ui icon basic small button closebtn" onclick='$("#fileinfo").slideUp("fast");'>
|
|
<i class="icon remove"></i>
|
|
<i class="icon remove"></i>
|
|
</button>
|
|
</button>
|
|
@@ -156,6 +157,7 @@
|
|
<br><br>
|
|
<br><br>
|
|
<script>
|
|
<script>
|
|
var vrootID = "";
|
|
var vrootID = "";
|
|
|
|
+ var viewingFileInfo = {};
|
|
|
|
|
|
$(".ui.checkbox").checkbox();
|
|
$(".ui.checkbox").checkbox();
|
|
//Extract vroot id from the window hash
|
|
//Extract vroot id from the window hash
|
|
@@ -173,6 +175,21 @@
|
|
$("#error").removeClass("hidden");
|
|
$("#error").removeClass("hidden");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function openSnapshotInfo(){
|
|
|
|
+ var snapshotInfo = {
|
|
|
|
+ SnapshotDisk: viewingFileInfo.BackupDiskUID,
|
|
|
|
+ SnapshotName: viewingFileInfo.Filename
|
|
|
|
+ };
|
|
|
|
+ var hashPassthrough = encodeURIComponent(JSON.stringify(snapshotInfo));
|
|
|
|
+ ao_module_newfw({
|
|
|
|
+ url: "SystemAO/disk/disk_snapshot.html#" + hashPassthrough,
|
|
|
|
+ width: 900,
|
|
|
|
+ height: 520,
|
|
|
|
+ appicon: "img/system/backup.svg",
|
|
|
|
+ title: "Snapshot Summary",
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
function showFileInfo(object){
|
|
function showFileInfo(object){
|
|
var filedata = $(object).attr("filedata");
|
|
var filedata = $(object).attr("filedata");
|
|
filedata = JSON.parse(decodeURIComponent(filedata));
|
|
filedata = JSON.parse(decodeURIComponent(filedata));
|
|
@@ -184,6 +201,7 @@
|
|
$("#fileinfo").find(".filename").text(filedata.Filename + ` (${ao_module_utils.formatBytes(filedata.Filesize, 2)})`);
|
|
$("#fileinfo").find(".filename").text(filedata.Filename + ` (${ao_module_utils.formatBytes(filedata.Filesize, 2)})`);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ viewingFileInfo=filedata;
|
|
|
|
|
|
//Hide the filename in relpath
|
|
//Hide the filename in relpath
|
|
var shortenRelpath = filedata.RelpathOnDisk.split("/");
|
|
var shortenRelpath = filedata.RelpathOnDisk.split("/");
|
|
@@ -198,9 +216,12 @@
|
|
if (filedata.IsSnapshot){
|
|
if (filedata.IsSnapshot){
|
|
$("#fileinfo").find(".deleteRemainingTime").hide();
|
|
$("#fileinfo").find(".deleteRemainingTime").hide();
|
|
$("#fileinfo").find(".deleteTime").hide();
|
|
$("#fileinfo").find(".deleteTime").hide();
|
|
|
|
+ $("#snapshotSummaryBtn").show();
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
$("#fileinfo").find(".deleteRemainingTime").show();
|
|
$("#fileinfo").find(".deleteRemainingTime").show();
|
|
$("#fileinfo").find(".deleteTime").show();
|
|
$("#fileinfo").find(".deleteTime").show();
|
|
|
|
+ $("#snapshotSummaryBtn").hide();
|
|
}
|
|
}
|
|
|
|
|
|
$("#fileinfo").slideDown('fast');
|
|
$("#fileinfo").slideDown('fast');
|