1- < div class ='page-header '>
2- < h1 > < tmpl _var name ="list_head_txt "> </ h1 >
3- </ div >
4- < p > < tmpl _var name ="list_desc_txt "> </ p >
5-
61< tmpl _if name ="config_error_msg ">
72< div style ="background: #ffdfdf; border: 1px solid #df7d7d; border-width: 1px 0; margin: 1.5em 0 1.5em 0; padding: 7px; ">
83 < p style ="font-face:bold "> {tmpl_var name='configuration_error_txt'}</ p >
@@ -94,7 +89,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
9489 < label for ="document_root " class ="col-sm-3 control-label " readonly > {tmpl_var name='document_root_txt'}</ label >
9590 < div class ="col-sm-9 ">
9691 < div class ="checkbox "> {tmpl_var name='document_root'}</ div >
97- </ div >
92+ </ div >
9893 </ div >
9994 </ tmpl _if>
10095 < div class ="form-group ">
@@ -291,13 +286,13 @@ <h1><tmpl_var name="list_head_txt"></h1>
291286 }
292287 adjustForm ( true ) ;
293288 reloadFastcgiPHPVersions ( true ) ;
294-
289+
295290 jQuery ( '#client_group_id' ) . change ( function ( ) {
296291 clientGroupId = $ ( this ) . val ( ) ;
297292 reloadWebIP ( ) ;
298293 reloadFastcgiPHPVersions ( ) ;
299294 } ) ;
300-
295+
301296 if ( jQuery ( '#php' ) . val ( ) == 'fast-cgi' || jQuery ( '#php' ) . val ( ) == 'php-fpm' || ( jQuery ( '#php' ) . val ( ) == 'hhvm' && serverType == 'nginx' ) ) {
302297 jQuery ( '.fastcgi_php_version:hidden' ) . show ( ) ;
303298 if ( jQuery ( '#php' ) . val ( ) == 'hhvm' ) {
@@ -311,10 +306,10 @@ <h1><tmpl_var name="list_head_txt"></h1>
311306 jQuery ( '.fastcgi_php_version:visible' ) . hide ( ) ;
312307 }
313308 //ISPConfig.resetFormChanged();
314-
309+
315310 jQuery ( '#php' ) . change ( function ( ) {
316311 reloadFastcgiPHPVersions ( ) ;
317- if ( jQuery ( this ) . val ( ) == 'fast-cgi' || jQuery ( this ) . val ( ) == 'php-fpm' || ( jQuery ( this ) . val ( ) == 'hhvm' && serverType == 'nginx' ) ) {
312+ if ( jQuery ( this ) . val ( ) == 'fast-cgi' || jQuery ( this ) . val ( ) == 'php-fpm' || ( jQuery ( this ) . val ( ) == 'hhvm' && serverType == 'nginx' ) ) {
318313 jQuery ( '.fastcgi_php_version:hidden' ) . show ( ) ;
319314 if ( jQuery ( this ) . val ( ) == 'hhvm' ) {
320315 jQuery ( '#fastcgi_php_version_txt' ) . hide ( ) ;
@@ -333,7 +328,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
333328 // new Vhostsubdomains/Vhostaliasdomains
334329 if ( serverId == '' ) jQuery ( '#parent_domain_id' ) . trigger ( 'change' ) ;
335330
336- /*
331+ /*
337332 if(jQuery('#directive_snippets_id').val() > 0){
338333 jQuery('.pagespeed').show();
339334 } else {
@@ -347,7 +342,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
347342 }
348343 });
349344*/
350-
345+
351346 function reloadServerId ( noFormChange ) {
352347 var parentWebId = jQuery ( '#parent_domain_id' ) . val ( ) ;
353348 jQuery . getJSON ( 'sites/ajax_get_json.php' + '?' + Math . round ( new Date ( ) . getTime ( ) ) , { web_id : parentWebId , type : "getserverid" } , function ( data ) {
@@ -356,7 +351,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
356351 if ( noFormChange ) reloadFastcgiPHPVersions ( noFormChange ) ;
357352 } ) ;
358353 }
359-
354+
360355 function adjustForm ( noFormChange ) {
361356 jQuery . getJSON ( 'sites/ajax_get_json.php' + '?' + Math . round ( new Date ( ) . getTime ( ) ) , { server_id : serverId , type : "getservertype" } , function ( data ) {
362357 if ( data . servertype == "nginx" ) {
@@ -399,7 +394,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
399394 }
400395 } ) ;
401396 }
402-
397+
403398 function reloadDirectiveSnippets ( ) {
404399 jQuery . getJSON ( 'sites/ajax_get_json.php' + '?' + Math . round ( new Date ( ) . getTime ( ) ) , { server_id : serverId , type : "getdirectivesnippet" } , function ( data ) {
405400 var options = '<option value="0">-</option>' ;
@@ -414,7 +409,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
414409 options += '<option ' + isSelected + ' value="' + data [ 'm_snippets' ] [ i ] [ 'directive_snippets_id' ] + '">' + data [ 'm_snippets' ] [ i ] [ 'name' ] + '</option>' ;
415410 }
416411 options += '</optgroup>' ;
417-
412+
418413 options += "<optgroup label=\"{tmpl_var name='select_directive_snippet_txt'}\">" ;
419414 for ( var i = 0 , len = data [ 'snippets' ] . length ; i < len ; i ++ ) {
420415 var isSelected = '' ;
@@ -430,19 +425,19 @@ <h1><tmpl_var name="list_head_txt"></h1>
430425 $ ( '#directive_snippets_id' ) . html ( options ) . change ( ) ;
431426 } ) ;
432427 }
433-
428+
434429 function reloadWebIP ( ) {
435430 ISPConfig . loadOptionInto ( 'ip_address' , 'sites/ajax_get_ip.php?ip_type=IPv4&server_id=' + serverId + '&client_group_id=' + clientGroupId < tmpl_if name = "use_combobox" value = "y" > , rerenderSelect2 < / t m p l _ i f > ) ;
436431 ISPConfig . loadOptionInto ( 'ipv6_address' , 'sites/ajax_get_ip.php?ip_type=IPv6&server_id=' + serverId + '&client_group_id=' + clientGroupId < tmpl_if name = "use_combobox" value = "y" > , rerenderSelect2 < / t m p l _ i f > ) ;
437432 < tmpl_if name = "use_combobox" value = "y" >
438433 //$('#ip_address').add('#ipv6_address').select2();
439434 </ tmpl_if >
440435 }
441-
436+
442437 function rerenderSelect2 ( elem ) {
443438 $ ( '#' + elem ) . select2 ( ) ;
444439 }
445-
440+
446441 function reloadFastcgiPHPVersions ( noFormChange ) {
447442 jQuery . getJSON ( 'sites/ajax_get_json.php' + '?' + Math . round ( new Date ( ) . getTime ( ) ) , { server_id : serverId , php_type : jQuery ( '#php' ) . val ( ) , type : "getphpfastcgi" , client_group_id : clientGroupId } , function ( data ) {
448443 //var options = '<option value="">Default</option>';
@@ -474,7 +469,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
474469 if ( noFormChange ) ISPConfig . resetFormChanged ( ) ;
475470 } ) ;
476471 }
477-
472+
478473 < tmpl_if name = "readonly_tab" >
479474 jQuery ( 'div.panel_web_domain' ) . find ( 'fieldset' ) . find ( 'input,select,button' ) . not ( '#directive_snippets_id' ) . bind ( 'click mousedown' , function ( e ) { e . preventDefault ( ) ; } ) . focus ( function ( ) { $ ( this ) . blur ( ) ; } ) ;
480475 jQuery ( '#dom-edit-submit' ) . click ( function ( ) {
@@ -485,7 +480,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
485480 ISPConfig . submitForm ( 'pageForm' , 'sites/web_vhost_domain_edit.php' ) ;
486481 } );
487482 </ tmpl_if >
488-
483+
489484 if ( $ ( '#domain' ) . val ( ) == '' ) {
490485 $ ( '#web_folder_domain' ) . text ( '[DOMAIN]' ) ;
491486 } else {
@@ -498,9 +493,9 @@ <h1><tmpl_var name="list_head_txt"></h1>
498493 $ ( '#web_folder_domain' ) . text ( $ ( '#domain' ) . val ( ) ) ;
499494 }
500495 } ) ;
501-
496+
502497 $ ( '#more_folder_directive_snippets' ) . click ( function ( ) {
503498 $ ( '.folder_directive_snippets:hidden:first' ) . removeClass ( 'hidden' ) ;
504499 } ) ;
505-
500+
506501</ script >
0 commit comments