diff --git a/static/websiteFunctions/websiteFunctions.js b/static/websiteFunctions/websiteFunctions.js index c02d78505..356118ab7 100644 --- a/static/websiteFunctions/websiteFunctions.js +++ b/static/websiteFunctions/websiteFunctions.js @@ -4950,11 +4950,23 @@ app.controller('sshAccess', function ($scope, $http, $timeout) { /* Java script code to cloneWebsite */ app.controller('cloneWebsite', function ($scope, $http, $timeout, $window) { + $('form').submit(function (e) { + e.preventDefault(); + }); + $scope.cyberpanelLoading = true; $scope.installationDetailsForm = false; $scope.installationProgress = true; $scope.goBackDisable = true; + $scope.cloneEnter = function ($event) { + var keyCode = $event.which || $event.keyCode; + if (keyCode === 13) { + $scope.cyberpanelLoading = false; + $scope.startCloning(); + } + }; + var statusFile; $scope.startCloning = function () { diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index c02d78505..356118ab7 100755 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -4950,11 +4950,23 @@ app.controller('sshAccess', function ($scope, $http, $timeout) { /* Java script code to cloneWebsite */ app.controller('cloneWebsite', function ($scope, $http, $timeout, $window) { + $('form').submit(function (e) { + e.preventDefault(); + }); + $scope.cyberpanelLoading = true; $scope.installationDetailsForm = false; $scope.installationProgress = true; $scope.goBackDisable = true; + $scope.cloneEnter = function ($event) { + var keyCode = $event.which || $event.keyCode; + if (keyCode === 13) { + $scope.cyberpanelLoading = false; + $scope.startCloning(); + } + }; + var statusFile; $scope.startCloning = function () { diff --git a/websiteFunctions/templates/websiteFunctions/setupStaging.html b/websiteFunctions/templates/websiteFunctions/setupStaging.html index 63eab9c1d..ee652d3ef 100755 --- a/websiteFunctions/templates/websiteFunctions/setupStaging.html +++ b/websiteFunctions/templates/websiteFunctions/setupStaging.html @@ -36,7 +36,7 @@