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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<div ng-hide="installationDetailsForm" class="form-group">
|
||||
<label class="col-sm-3 control-label">{% trans "Domain" %}</label>
|
||||
<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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user