mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
feature: ref https://github.com/usmannasir/cyberpanel/issues/189 clone via enter
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user