@@ -112,10 +112,11 @@ App.HTML.Build.user_form = function (options, id) {
112112 } else {
113113 tpl . set ( ':NS' , '' ) ;
114114 }
115+
115116 tpl = App . HTML . setTplKeys ( tpl , options , true ) ;
116117 tpl = App . HTML . Build . user_selects ( tpl , options ) ;
117118 tpl = App . HTML . toggle_suspended_form ( tpl , options ) ;
118- if ( options . REPORTS_ENABLED == 'yes' ) {
119+ if ( options . REPORTS_ENABLED == 'yes' || options . REPORTS_ENABLED == 'on' ) {
119120 tpl . set ( ':CHECKED' , 'checked="checked"' ) ;
120121 } else {
121122 tpl . set ( ':CHECKED' , '' ) ;
@@ -177,10 +178,13 @@ App.HTML.Build.web_domain_form = function (options, id) {
177178 tpl = App . HTML . setTplKeys ( tpl , options , true ) ;
178179 tpl = App . HTML . Build . web_domain_selects ( tpl , options ) ;
179180 tpl = App . HTML . toggle_suspended_form ( tpl , options ) ;
180- if ( options . CGI == 'yes' || ! in_edit ) {
181+
182+ if ( options . CGI == 'yes' || options . CGI == 'on' || ! in_edit ) {
181183 tpl . set ( ':CHECKED_CGI' , 'checked="checked"' ) ;
182184 }
183- if ( options . ELOG == 'yes' ) {
185+
186+
187+ if ( options . ELOG == 'yes' || options . ELOG == 'on' ) {
184188 tpl . set ( ':CHECKED_ELOG' , 'checked="checked"' ) ;
185189 }
186190 if ( options . STATS_LOGIN . trim ( ) != '' ) {
@@ -212,6 +216,9 @@ App.HTML.Build.web_domain_form = function (options, id) {
212216 tpl . set ( ':SSL_CA' , '' ) ;
213217 }
214218
219+ tpl . set ( ':DNS_DOMAIN_ALSO' , in_edit ? 'hidden' : '' ) ;
220+
221+
215222 return tpl . finalize ( ) ;
216223}
217224
@@ -290,16 +297,12 @@ App.HTML.Build.ip_entry = function (o) {
290297
291298 return tpl . finalize ( ) ;
292299}
293- App . HTML . Build . dns_entry = function ( o , is_new ) {
300+ App . HTML . Build . dns_entry = function ( o ) {
294301 var tpl = App . Templates . get ( 'ENTRY' , 'dns' ) ;
295302 tpl = App . HTML . setTplKeys ( tpl , o ) ;
296303 var ip = o . IP . split ( '.' ) ;
297304 tpl . set ( ':IP' , ip . join ( '<span class="dot">.</span>' ) ) ;
298305 tpl . set ( ':CHECKED' , '' ) ;
299- if ( is_new ) {
300- var now = new Date ( ) ;
301- tpl . set ( ':DATE' , now . format ( "d.mm.yyyy" ) ) ;
302- }
303306 tpl . set ( ':TPL_VAL' , o . TPL ) ;
304307 tpl = App . HTML . toggle_suspended_entry ( tpl , o ) ;
305308
@@ -354,7 +357,8 @@ App.HTML.Build.user_entry = function (o, key) {
354357 tpl . set ( ':NS' , ns_custom . finalize ( ) ) ;
355358 }
356359 tpl = App . HTML . Build . user_web_tpl ( tpl , o ) ;
357- tpl . set ( ':REPORTS_ENABLED' , o . REPORTS_ENABLED == 'yes' ? 'enabled' : 'DISABLED' ) ;
360+
361+ tpl . set ( ':REPORTS_ENABLED' , o . REPORTS_ENABLED == 'yes' || o . REPORTS_ENABLED == 'on' ? 'enabled' : 'DISABLED' ) ;
358362 if ( o . U_DISK_PERCENTAGE > 100 ) {
359363 var tpl_over = App . Templates . get ( 'over_bar' , 'general' ) ;
360364 var difference = parseInt ( o . U_DISK_PERCENTAGE , 10 ) - 100 ;
0 commit comments