mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +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 */
|
/* 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 () {
|
||||||
|
|||||||
@@ -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 () {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user