diff --git a/static/websiteFunctions/websiteFunctions.js b/static/websiteFunctions/websiteFunctions.js index d1f948405..ca0fed440 100644 --- a/static/websiteFunctions/websiteFunctions.js +++ b/static/websiteFunctions/websiteFunctions.js @@ -2830,6 +2830,8 @@ app.controller('manageCronController', function ($scope, $http) { $("#cronEditSuccess").hide(); $("#fetchCronFailure").hide(); + $scope.websiteToBeModified = $("#domain").text(); + $scope.fetchWebsites = function () { $("#manageCronLoading").show(); @@ -2880,6 +2882,7 @@ app.controller('manageCronController', function ($scope, $http) { $("#cronEditSuccess").hide(); } }; + $scope.fetchWebsites(); $scope.fetchCron = function (cronLine) { @@ -3033,7 +3036,6 @@ app.controller('manageCronController', function ($scope, $http) { } }; - $scope.removeCron = function (line) { $("#manageCronLoading").show(); diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index d1f948405..ca0fed440 100755 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -2830,6 +2830,8 @@ app.controller('manageCronController', function ($scope, $http) { $("#cronEditSuccess").hide(); $("#fetchCronFailure").hide(); + $scope.websiteToBeModified = $("#domain").text(); + $scope.fetchWebsites = function () { $("#manageCronLoading").show(); @@ -2880,6 +2882,7 @@ app.controller('manageCronController', function ($scope, $http) { $("#cronEditSuccess").hide(); } }; + $scope.fetchWebsites(); $scope.fetchCron = function (cronLine) { @@ -3033,7 +3036,6 @@ app.controller('manageCronController', function ($scope, $http) { } }; - $scope.removeCron = function (line) { $("#manageCronLoading").show(); diff --git a/websiteFunctions/templates/websiteFunctions/listCron.html b/websiteFunctions/templates/websiteFunctions/listCron.html index 44e9a1fd2..e03076a98 100755 --- a/websiteFunctions/templates/websiteFunctions/listCron.html +++ b/websiteFunctions/templates/websiteFunctions/listCron.html @@ -16,27 +16,19 @@
+ {% trans "Cron Management" %} - {{ domain }}