@@ -4521,6 +4521,21 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
45214521
45224522 var statusFile ;
45234523
4524+
4525+ $scope . webselection = true ;
4526+ $scope . WebsiteType = function ( ) {
4527+ var type = $scope . websitetype ;
4528+ if ( type == 'Sub Domain' ) {
4529+ $scope . webselection = false ;
4530+ $scope . DomainCreateForm = true ;
4531+
4532+ } else if ( type == 'Addon Domain' ) {
4533+ $scope . DomainCreateForm = false ;
4534+ $scope . webselection = true ;
4535+ $scope . masterDomain = $ ( '#defaultSite' ) . html ( )
4536+ }
4537+ } ;
4538+
45244539 $scope . WebsiteSelection = function ( ) {
45254540 $scope . DomainCreateForm = false ;
45264541 } ;
@@ -4584,8 +4599,11 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
45844599 //
45854600 // var domainName = $scope.own_domainNameCreate;
45864601 // }
4602+ var type = $scope . websitetype ;
4603+
45874604 var domainName = $scope . domainNameCreate ;
45884605
4606+
45894607 var data = {
45904608 domainName : domainName ,
45914609 phpSelection : phpSelection ,
@@ -4603,6 +4621,8 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
46034621 }
46044622 } ;
46054623
4624+ // console.log(data)
4625+
46064626 $http . post ( url , data , config ) . then ( ListInitialDatas , cantLoadInitialDatas ) ;
46074627
46084628
@@ -10759,7 +10779,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
1075910779
1076010780
1076110781 $scope . refreshStatus = function ( ) {
10762- $ ( '#actionLoading' ) . show ( ) ;
10782+ $ ( '#actionLoading' ) . show ( ) ;
1076310783 url = "/docker/getContainerStatus" ;
1076410784 var data = { name : $scope . cName } ;
1076510785 var config = {
@@ -10771,7 +10791,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
1077110791 $http . post ( url , data , config ) . then ( ListInitialData , cantLoadInitialData ) ;
1077210792
1077310793 function ListInitialData ( response ) {
10774- $ ( '#actionLoading' ) . hide ( ) ;
10794+ $ ( '#actionLoading' ) . hide ( ) ;
1077510795 if ( response . data . containerStatus === 1 ) {
1077610796 console . log ( response . data . status ) ;
1077710797 $scope . status = response . data . status ;
@@ -10786,7 +10806,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
1078610806 }
1078710807
1078810808 function cantLoadInitialData ( response ) {
10789- $ ( '#actionLoading' ) . hide ( ) ;
10809+ $ ( '#actionLoading' ) . hide ( ) ;
1079010810 PNotify . error ( {
1079110811 title : 'Unable to complete request' ,
1079210812 text : "Problem in connecting to server"
@@ -10796,7 +10816,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
1079610816 } ;
1079710817
1079810818 $scope . restarthStatus = function ( ) {
10799- $ ( '#actionLoading' ) . show ( ) ;
10819+ $ ( '#actionLoading' ) . show ( ) ;
1080010820 url = "/docker/RestartContainerAPP" ;
1080110821 var data = {
1080210822 name : $scope . cName ,
@@ -10811,7 +10831,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
1081110831 $http . post ( url , data , config ) . then ( ListInitialData , cantLoadInitialData ) ;
1081210832
1081310833 function ListInitialData ( response ) {
10814- $ ( '#actionLoading' ) . hide ( ) ;
10834+ $ ( '#actionLoading' ) . hide ( ) ;
1081510835 if ( response . data . status === 1 ) {
1081610836 if ( response . data . data [ 0 ] === 1 ) {
1081710837 new PNotify ( {
@@ -10838,7 +10858,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
1083810858 }
1083910859
1084010860 function cantLoadInitialData ( response ) {
10841- $ ( '#actionLoading' ) . hide ( ) ;
10861+ $ ( '#actionLoading' ) . hide ( ) ;
1084210862 PNotify . error ( {
1084310863 title : 'Unable to complete request' ,
1084410864 text : "Problem in connecting to server"
0 commit comments