misc dialog tweaks

This commit is contained in:
Andrew Dolgov 2009-10-08 12:36:38 +04:00
parent 588e4dc3d3
commit b171066641
2 changed files with 6 additions and 3 deletions

View File

@ -2862,8 +2862,11 @@
} else { } else {
$is_selected = ""; $is_selected = "";
} }
$title = truncate_string(htmlspecialchars($line["title"]), 40);
printf("<option $is_selected value='%d'>%s</option>", printf("<option $is_selected value='%d'>%s</option>",
$line["id"], htmlspecialchars($line["title"])); $line["id"], $title);
} }
print "</select>"; print "</select>";

View File

@ -153,13 +153,13 @@
print "<div class=\"dlgSecCont\">"; 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)\" onkeypress=\"return filterCR(event, search)\"
onchange=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\" onchange=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\" onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
value=\"\">"; value=\"\">";
print " " . __('match on:')." "; print " " . __('match on')." ";
$search_fields = array( $search_fields = array(
"title" => __("Title"), "title" => __("Title"),