diff options
author | Andrew Dolgov <[email protected]> | 2009-10-08 12:36:38 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-10-08 12:36:38 +0400 |
commit | b17106664151dad0af0aef31653f7a7d2e8c3dc8 (patch) | |
tree | 97e4da18e11f750de6b2cd56103fb3bad08bb051 | |
parent | 588e4dc3d36be03ab404779ee98d97e07f9863c8 (diff) |
misc dialog tweaks
-rw-r--r-- | functions.php | 5 | ||||
-rw-r--r-- | modules/popup-dialog.php | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 2c2a81c56..eabb5a358 100644 --- a/functions.php +++ b/functions.php @@ -2862,8 +2862,11 @@ } 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>"; diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index b173e64f6..ab28d1746 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -153,13 +153,13 @@ 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"), |