From a5bd7bf051e2d547fc0aed78ba231588d44291ce Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 May 2008 04:32:36 +0100 Subject: user prefs: add search, misc code cleanup --- modules/pref-labels.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'modules/pref-labels.php') diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 617952270..ce326bf01 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -314,11 +314,7 @@ ++$lnum; } - - if ($lnum == 0) { - print "".__('No labels defined.').""; - } - + print ""; print "

"; @@ -329,7 +325,14 @@ onclick=\"javascript:removeSelectedLabels()\" value=\"".__('Remove')."\">"; } else { - print "

".__('No labels defined.')."

"; + print "

"; + if (!$label_search) { + print __('No labels defined.'); + } else { + print __('No matching labels found.'); + } + print "

"; + } } ?> -- cgit v1.2.3