File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -173,11 +173,11 @@ App.Listeners.WEB.keypress_domain_name();
173173
174174$ ( function ( ) {
175175 $ ( '#v_domain' ) . change ( function ( ) {
176- if ( ( ( document . getElementById ( 'v_domain' ) . value ) . split ( "." ) ) . length === 2 ) {
177- var prefix = 'www.' ;
178- document . getElementById ( 'v_aliases' ) . value = prefix + document . getElementById ( 'v_domain' ) . value ;
179- } else {
176+ var prefix = 'www.' ;
177+ if ( ( ( document . getElementById ( 'v_domain' ) . value ) . split ( "." ) ) . length > 2 ) {
180178 document . getElementById ( 'v_aliases' ) . value = "" ;
179+ } else {
180+ document . getElementById ( 'v_aliases' ) . value = prefix + document . getElementById ( 'v_domain' ) . value ;
181181 }
182182 } ) ;
183183 App . Actions . WEB . toggle_letsencrypt ( $ ( 'input[name=v_letsencrypt]' ) )
You can’t perform that action at this time.
0 commit comments