]> git.wh0rd.org Git - tt-rss.git/commitdiff
some more button-related fixes; code cleanup
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 12 Jan 2010 13:19:53 +0000 (16:19 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 12 Jan 2010 13:19:53 +0000 (16:19 +0300)
functions.php
modules/popup-dialog.php
tt-rss.php

index 388d71530bb68cef08e58ad1779ccdd0c6abaa80..a5583e729a4b5163e65940e0fe68cac3e34cc759 100644 (file)
                } else {
                        print "
                                <div style=\"text-align : center\">
-                               <input type=\"submit\" onclick=\"return window.close()\" 
-                               value=\"".__("Close this window")."\"></div>";
+                               <button onclick=\"return window.close()\">".
+                                       __("Close this window")."</button></div>";
                        print "</body></html>";
 
                }
index 7967eb70b4bb61a9c98358b2f0e20775e07713d8..ea3ff813559e174dd8af216f9cc2126584c9f18b 100644 (file)
                                        style=\"display:none\"></div>   
                        </td></tr>";
 
-/*                     print "<tr><td>".__('Add existing tag:')."</td>";
-
-                       $result = db_query($link, "SELECT DISTINCT tag_name FROM ttrss_tags 
-                               WHERE owner_uid = '".$_SESSION["uid"]."' ORDER BY tag_name");
-
-                       $found_tags = array();
-
-                       array_push($found_tags, '');
-
-                       while ($line = db_fetch_assoc($result)) {
-                               array_push($found_tags, truncate_string($line["tag_name"], 20));
-                       }
-
-                       print "<td align='right'>";
-
-                       print_select("found_tags", '', $found_tags, "onchange=\"javascript:editTagsInsert()\"");
-
-                       print "</td>"; 
-
-                       print "</tr>"; */
-
                        print "</table>";
 
                        print "</form>";
 
                        print "<div align='right'>";
 
-                       print "<input class=\"button\"
-                               type=\"submit\" onclick=\"return editTagsSave()\" 
-                               value=\"".__('Save')."\"> ";
-
-                       print "<input class=\"button\"
-                               type=\"submit\" onclick=\"return closeInfoBox()\" 
-                               value=\"".__('Cancel')."\">";
-
+                       print "<button onclick=\"return editTagsSave()\">".__('Save')."</button> ";
+                       print "<button onclick=\"return closeInfoBox()\">".__('Cancel')."</button>";
 
                        print "</div>";
 
index ccd4a4b9afceabd5d4d8c8542d8fb7a37a4550d0..94f56e1eca7b4dde09d9022aa0cd33ebb30d2283 100644 (file)
                        title="<?php echo __('Collapse feedlist') ?>" style="display : none">
                        &lt;&lt;</button>
 
-               &nbsp;
-
                <select name="view_mode" title="<?php echo __('Show articles') ?>" 
                                onchange="viewModeChanged()">
                        <option selected="selected" value="adaptive"><?php echo __('Adaptive') ?></option>
                        <option value="score"><?php echo __('Score') ?></option>
                </select>
 
-               &nbsp;
-
                <button onclick="return viewCurrentFeed('ForceUpdate')">
                        <?php echo __('Update') ?></button>