equal
deleted
inserted
replaced
108 var frm = document.forms['install_website']; |
108 var frm = document.forms['install_website']; |
109 var fail = false; |
109 var fail = false; |
110 if ( frm.site_name.value == '' ) |
110 if ( frm.site_name.value == '' ) |
111 { |
111 { |
112 fail = true; |
112 fail = true; |
113 new Spry.Effect.Shake($(frm.site_name).object, {duration: 750}).start(); |
113 $(frm.site_name).effect("shake", {}, 750); |
114 frm.site_name.focus(); |
114 frm.site_name.focus(); |
115 } |
115 } |
116 if ( frm.site_desc.value == '' ) |
116 if ( frm.site_desc.value == '' ) |
117 { |
117 { |
118 new Spry.Effect.Shake($(frm.site_desc).object, {duration: 750}).start(); |
118 $(frm.site_desc).effect("shake", {}, 750); |
119 if ( !fail ) |
119 if ( !fail ) |
120 frm.site_desc.focus(); |
120 frm.site_desc.focus(); |
121 fail = true; |
121 fail = true; |
122 } |
122 } |
123 if ( frm.copyright.value == '' ) |
123 if ( frm.copyright.value == '' ) |
124 { |
124 { |
125 new Spry.Effect.Shake($(frm.copyright).object, {duration: 750}).start(); |
125 $(frm.copyright).effect("shake", {}, 750); |
126 if ( !fail ) |
126 if ( !fail ) |
127 frm.copyright.focus(); |
127 frm.copyright.focus(); |
128 fail = true; |
128 fail = true; |
129 } |
129 } |
130 return ( !fail ); |
130 return ( !fail ); |