wok-4.x view tazpanel/stuff/installer.patch @ rev 12347

gnome-vfs: repaired (from unwork state); added gnome-vfs-i18n (optional lang files)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 22 01:17:33 2012 +0000 (2012-10-22)
parents
children
line source
1 --- installer.cgi
2 +++ installer.cgi.new
3 @@ -433,8 +433,8 @@
4 <h5 id="hostname">$(gettext 'Hostname')</h5>
6 $(gettext 'Set Hostname to:')
7 - <input type="text" id="hostname" name="TGT_HOSTNAME" value="$TGT_HOSTNAME" placeholder="$(gettext 'Name of your system')" onkeyup="checkLogin('hostname','msgHostname'); return false;" />
8 - <span id="msgHostname"></span>
9 + <input type="text" id="hst" name="TGT_HOSTNAME" value="$TGT_HOSTNAME" placeholder="$(gettext 'Name of your system')" onkeyup="checkLogin('hst','msgHst'); return false;" />
10 + <span id="msgHst"></span>
11 </div>
12 EOT
13 }
14 @@ -442,7 +442,7 @@
15 select_root()
16 {
17 cat << EOT
18 -<div class="box2">
19 +<div>
20 <h5 id="root">$(gettext 'Root')</h5>
22 $(gettext 'Root passwd:')
23 @@ -459,12 +459,12 @@
24 select_user()
25 {
26 cat << EOT
27 -<div class="box2">
28 +<div>
29 <h5 id="user">$(gettext 'User')</h5>
31 $(gettext 'User login:')
32 - <input type="text" id="user" name="TGT_USER" value="$TGT_USER" placeholder="$(gettext 'Name of the first user')" onkeyup="checkLogin('user','msgUser'); return false;" />
33 - <span id="msgUser"></span>
34 + <input type="text" id="usr" name="TGT_USER" value="$TGT_USER" placeholder="$(gettext 'Name of the first user')" onkeyup="checkLogin('usr','msgUsr'); return false;" />
35 + <span id="msgUsr"></span>
36 <br /><br />
38 $(gettext 'User passwd:')
39 @@ -618,7 +618,7 @@
40 function Validate(page) {
41 if (page == "install") {
42 // hostname
43 - if (false == checkLogin('hostname','msgHostname')) {
44 + if (false == checkLogin('hst','msgHst')) {
45 alert("$(gettext 'Hostname error')");
46 return false;
47 // root pwd
48 @@ -626,7 +626,7 @@
49 alert("$(gettext 'Root password error')");
50 return false;
51 // user
52 - } else if (false == checkLogin('user','msgUser')) {
53 + } else if (false == checkLogin('usr','msgUsr')) {
54 alert("$(gettext 'User login error')");
55 return false;
56 // user pwd