\n' +
- '\n';
- var mp = $compile(tml)($scope);
-
- $('#listsnapshots').append(mp);
}
- // $scope.Snaphot_ID
- // var table = document.getElementById("snapshotstable");
- //
- // // Loop through the data and create a new row for each item
- // for (var i = 0; i < data.length; i++) {
- // // Create a new row element
- // var row = table.insertRow();
- //
- // // Create the first cell and set its value to the current item in the data array
- // var idCell = row.insertCell(0);
- // idCell.innerHTML = data[i];
- //
- // // Create the second cell and add a delete button to it
- // var deleteCell = row.insertCell(1);
- // var deleteButton = document.createElement("button");
- // deleteButton.innerHTML = "Delete";
- // deleteButton.addEventListener("click", function() {
- // // Call your delete function here
- // console.log("Deleting item:", data[i]);
- // });
- // deleteCell.appendChild(deleteButton);
- // }
} else {
new PNotify({
title: 'Error!',
@@ -1758,7 +1739,8 @@ app.controller('ConfigureV2Backup', function ($scope, $http, $timeout) {
function listpaths(pathid, button) {
- console.log("LIST PAYH FUNCTIOB CALLED WITH ID " + pathid);
+ console.log("ID of button used to hide " + button);
+ console.log(" ID of container which we hide on button press" + pathid);
var pathlist = document.getElementById(pathid)
if (pathlist.style.display === "none") {
pathlist.style.display = "revert";