]> git.wh0rd.org Git - tt-rss.git/commitdiff
misc dialog tweaks
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 8 Oct 2009 08:36:38 +0000 (12:36 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 8 Oct 2009 08:36:38 +0000 (12:36 +0400)
functions.php
modules/popup-dialog.php

index 2c2a81c5666090e2d8204df3331be522b32d1d74..eabb5a3589627a35bbc8dedfd13d5d6ac1c5b63b 100644 (file)
                        } else {
                                $is_selected = "";
                        }
+
+                       $title = truncate_string(htmlspecialchars($line["title"]), 40);
+
                        printf("<option $is_selected value='%d'>%s</option>", 
-                               $line["id"], htmlspecialchars($line["title"]));
+                               $line["id"], $title);
                }
        
                print "</select>";
index b173e64f6e96f0da5b8c9859c8ad4c416d47c58d..ab28d17466fb2c1d61e4ea87407c58662c35a475 100644 (file)
 
                        print "<div class=\"dlgSecCont\">";
 
-                       print "<input name=\"query\" size=\"30\" type=\"search\"
+                       print "<input name=\"query\" size=\"20\" type=\"search\"
                                onkeypress=\"return filterCR(event, search)\"
                                onchange=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
                                onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
                                value=\"\">";
 
-                       print " " . __('match on:')." ";
+                       print " " . __('match on')." ";
 
                        $search_fields = array(
                                "title" => __("Title"),