Alexander Nicolaysen Sørnes : db_filter_ui: Use first filter option as default

Chris Morgan cmorgan at winehq.org
Sun Sep 14 09:10:05 CDT 2008


Module: appdb
Branch: master
Commit: 14bba93d37366ac0eea1b0cf675933558389d13b
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=14bba93d37366ac0eea1b0cf675933558389d13b

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Tue Aug  5 17:22:40 2008 +0200

db_filter_ui: Use first filter option as default

---

 include/db_filter_ui.php |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/include/db_filter_ui.php b/include/db_filter_ui.php
index cbe69cf..0e6f56c 100644
--- a/include/db_filter_ui.php
+++ b/include/db_filter_ui.php
@@ -224,17 +224,13 @@ class FilterInterface
         {
             $shEditor .= "<select name='i{$sColumn}Op$sId'>";
 
-            if($iId == -1)
-            {
-                $sText = 'criterion';
-                $sSel = " selected='selected'";
-            } else
+            if($iId != -1)
             {
                 $sSel = '';
                 $sText = 'remove';
-            }
 
-            $shEditor .= "<option value='0'$sSel>-- $sText --</option>";
+                $shEditor .= "<option value='0'$sSel>-- $sText --</option>";
+            }
 
             foreach($aTypes as $iType)
             {




More information about the wine-cvs mailing list