File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 115115 items . push ( { id : p , description : timezoneMap [ p ] } ) ;
116116 args . response . success ( { data : items } ) ;
117117 }
118+ } ,
119+ networkdomain : {
120+ label : 'Network domain' ,
121+ validation : { required : false }
118122 }
119123 }
120124 } ,
147151 if ( args . data . timezone != null && args . data . timezone . length > 0 )
148152 array1 . push ( "&timezone=" + todb ( args . data . timezone ) ) ;
149153
154+ if ( args . data . networkdomain != null && args . data . networkdomain . length > 0 )
155+ array1 . push ( "&networkdomain=" + todb ( args . data . networkdomain ) ) ;
156+
150157 $ . ajax ( {
151158 url : createURL ( "createAccount" + array1 . join ( "" ) ) ,
152159 dataType : "json" ,
Original file line number Diff line number Diff line change 146146
147147 action : function ( args ) {
148148 var array1 = [ ] ;
149- array1 . push ( "&name=" + todb ( args . data . name ) ) ;
150- array1 . push ( "&networkdomain=" + todb ( args . data . networkdomain ) ) ;
151149 array1 . push ( "&parentdomainid=" + args . context . domains [ 0 ] . id ) ;
150+ array1 . push ( "&name=" + todb ( args . data . name ) ) ;
151+ if ( args . data . networkdomain != null && args . data . networkdomain . length > 0 )
152+ array1 . push ( "&networkdomain=" + todb ( args . data . networkdomain ) ) ;
153+
152154 $ . ajax ( {
153155 url : createURL ( "createDomain" + array1 . join ( "" ) ) ,
154156 dataType : "json" ,
You can’t perform that action at this time.
0 commit comments