This commit is contained in:
Usman Nasir
2019-12-30 15:08:23 +05:00
parent 6216299edb
commit 5a693289c1
3 changed files with 25 additions and 1 deletions

View File

@@ -4950,11 +4950,23 @@ app.controller('sshAccess', function ($scope, $http, $timeout) {
/* Java script code to cloneWebsite */ /* Java script code to cloneWebsite */
app.controller('cloneWebsite', function ($scope, $http, $timeout, $window) { app.controller('cloneWebsite', function ($scope, $http, $timeout, $window) {
$('form').submit(function (e) {
e.preventDefault();
});
$scope.cyberpanelLoading = true; $scope.cyberpanelLoading = true;
$scope.installationDetailsForm = false; $scope.installationDetailsForm = false;
$scope.installationProgress = true; $scope.installationProgress = true;
$scope.goBackDisable = true; $scope.goBackDisable = true;
$scope.cloneEnter = function ($event) {
var keyCode = $event.which || $event.keyCode;
if (keyCode === 13) {
$scope.cyberpanelLoading = false;
$scope.startCloning();
}
};
var statusFile; var statusFile;
$scope.startCloning = function () { $scope.startCloning = function () {

View File

@@ -4950,11 +4950,23 @@ app.controller('sshAccess', function ($scope, $http, $timeout) {
/* Java script code to cloneWebsite */ /* Java script code to cloneWebsite */
app.controller('cloneWebsite', function ($scope, $http, $timeout, $window) { app.controller('cloneWebsite', function ($scope, $http, $timeout, $window) {
$('form').submit(function (e) {
e.preventDefault();
});
$scope.cyberpanelLoading = true; $scope.cyberpanelLoading = true;
$scope.installationDetailsForm = false; $scope.installationDetailsForm = false;
$scope.installationProgress = true; $scope.installationProgress = true;
$scope.goBackDisable = true; $scope.goBackDisable = true;
$scope.cloneEnter = function ($event) {
var keyCode = $event.which || $event.keyCode;
if (keyCode === 13) {
$scope.cyberpanelLoading = false;
$scope.startCloning();
}
};
var statusFile; var statusFile;
$scope.startCloning = function () { $scope.startCloning = function () {

View File

@@ -36,7 +36,7 @@
<div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Domain" %}</label> <label class="col-sm-3 control-label">{% trans "Domain" %}</label>
<div class="col-sm-6"> <div class="col-sm-6">
<input type="text" class="form-control" ng-model="domain" required> <input ng-keypress="cloneEnter($event)" type="text" class="form-control" ng-model="domain" required>
</div> </div>
</div> </div>