Always show search box
authorJamie Cameron <jcameron@webmin.com>
Wed, 19 Nov 2008 18:47:06 +0000 (18:47 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 19 Nov 2008 18:47:06 +0000 (18:47 +0000)
cron/CHANGELOG
cron/index.cgi
cron/lang/en

index 4e616ce..322b022 100644 (file)
@@ -32,3 +32,5 @@ Added a check for a valid module configuration, especially the cron jobs directo
 Added an access control option to prevent individual Webmin users from creating cron jobs that run more often than hourly.
 ---- Changes since 1.420 ----
 Disable time and day lists when 'All' is selected, to indicate that they are un-usable.
+---- Changes since 1.440 ----
+The search form for jobs is always visible, even when there are not too many jobs to show.
index ae501b1..8db7345 100755 (executable)
@@ -196,13 +196,16 @@ if ($in{'search'}) {
                     @rows;
        }
 
+# Show search form
+print &ui_form_start("index.cgi");
+print "<b>$text{'index_search'}</b>\n";
+print &ui_textbox("search", $in{'search'}, 20);
+print &ui_submit($text{'index_ok'});
+print &ui_form_end();
+
 # Check if we are over the display limit
 if ($max_jobs && @rows > $max_jobs && !$in{'search'}) {
-       print &ui_form_start("index.cgi");
-       print "<b>$text{'index_toomany'}</b>\n";
-       print &ui_textbox("search", $in{'search'}, 20);
-       print &ui_submit($text{'index_ok'});
-       print &ui_form_end();
+       print "<b>$text{'index_toomany2'}</b><p>\n";
        print &ui_links_row(\@crlinks);
        }
 elsif (@rows) {
index 5ef27f0..14d4aa1 100644 (file)
@@ -21,7 +21,8 @@ index_delete=Delete Selected Jobs
 index_disable=Disable Selected Jobs
 index_enable=Enable Selected Jobs
 index_esearch=No jobs matched your search for $1.
-index_toomany=There are too many jobs to show. Find those matching :
+index_toomany2=There are too many jobs to show. Use the search form above to limit the list.
+index_search=Find Cron jobs matching
 index_ok=Search
 index_searchres=Cron jobs matching $1 ..
 index_reset=Reset search.