summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-21 13:41:35 +0300
committerAndrew Dolgov <[email protected]>2010-11-21 13:41:35 +0300
commitd1bcacaeb9b4277c2732bdf2b981a3c3059c47e5 (patch)
treebd7ac459955ba92fd1ff1e4d986a631db1ed85f4 /modules
parent973fe3c6faf777e72cade843c5cc3cf5227f2a0e (diff)
prefs: code cleanup
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-feeds.php10
-rw-r--r--modules/pref-prefs.php33
2 files changed, 6 insertions, 37 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index 2923f3349..2b279d2d7 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -1145,16 +1145,6 @@
print "<div dojoType=\"dijit.Toolbar\">";
- /*
- print "<div style='float : right'>
- <input id=\"feed_search\" size=\"20\" type=\"search\"
- onfocus=\"disableHotkeys();\"
- onblur=\"enableHotkeys();\"
- onchange=\"updateFeedList()\" value=\"$feed_search\">
- <button onclick=\"updateFeedList()\">".
- __('Search')."</button>
- </div>"; */
-
print "<div dojoType=\"dijit.form.DropDownButton\">".
"<span>" . __('Select')."</span>";
print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">";
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php
index 98211aa0d..14cd354f6 100644
--- a/modules/pref-prefs.php
+++ b/modules/pref-prefs.php
@@ -206,18 +206,11 @@
$full_name = htmlspecialchars(db_fetch_result($result, 0, "full_name"));
print "<tr><td width=\"40%\">".__('Full name')."</td>";
- print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"full_name\"
- required=\"1\"
- onfocus=\"javascript:disableHotkeys();\"
- onblur=\"javascript:enableHotkeys();\"
+ print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"full_name\" required=\"1\"
value=\"$full_name\"></td></tr>";
print "<tr><td width=\"40%\">".__('E-mail')."</td>";
- print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"email\"
- required=\"1\"
- onfocus=\"javascript:disableHotkeys();\"
- onblur=\"javascript:enableHotkeys();\"
- value=\"$email\"></td></tr>";
+ print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"email\" required=\"1\" value=\"$email\"></td></tr>";
if (!SINGLE_USER_MODE) {
$access_level = db_fetch_result($result, 0, "access_level");
@@ -272,27 +265,16 @@
print "<table width=\"100%\" class=\"prefPrefsList\">";
print "<tr><td width=\"40%\">".__("Old password")."</td>";
- print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\"
- required=\"1\"
- onfocus=\"javascript:disableHotkeys();\"
- onblur=\"javascript:enableHotkeys();\"
- name=\"old_password\"></td></tr>";
+ print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\" name=\"old_password\"></td></tr>";
print "<tr><td width=\"40%\">".__("New password")."</td>";
- print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\"
- required=\"1\"
- onfocus=\"javascript:disableHotkeys();\"
- onblur=\"javascript:enableHotkeys();\"
+ print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\"
name=\"new_password\"></td></tr>";
print "<tr><td width=\"40%\">".__("Confirm password")."</td>";
- print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\"
- required=\"1\"
- onfocus=\"javascript:disableHotkeys();\"
- onblur=\"javascript:enableHotkeys();\"
- name=\"confirm_password\"></td></tr>";
+ print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\" name=\"confirm_password\"></td></tr>";
print "</table>";
@@ -462,16 +444,13 @@
print "<input dojoType=\"dijit.form.ValidationTextBox\"
required=\"1\" $regexp
- onfocus=\"javascript:disableHotkeys();\"
- onblur=\"javascript:enableHotkeys();\"
name=\"$pref_name\" value=\"$value\">";
} else {
$regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : '';
print "<input dojoType=\"dijit.form.ValidationTextBox\"
- onfocus=\"javascript:disableHotkeys();\" $regexp
- onblur=\"javascript:enableHotkeys();\"
+ $regexp
name=\"$pref_name\" value=\"$value\">";
}