]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: code cleanup
authorAndrew Dolgov <fox@fakecake.org>
Sun, 21 Nov 2010 10:41:35 +0000 (13:41 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 21 Nov 2010 10:41:35 +0000 (13:41 +0300)
modules/pref-feeds.php
modules/pref-prefs.php

index 2923f33492bcda41c47064349d6e03afdcfa6185..2b279d2d733c70328cd55612a6056b711b95e016 100644 (file)
 
                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;\">";
index 98211aa0d733f65e2d26e457396ab8c7d5b53272..14cd354f6863f8d07a59cb3c49b4f2c33d471f00 100644 (file)
                                $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");
                                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>";
        
 
                                        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\">";
                                }