Pārlūkot izejas kodu

Fix #91: set selected attribute correctly

George S. Baugh 5 gadi atpakaļ
vecāks
revīzija
df6b8dafa5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      www/templates/config.tx

+ 1 - 1
www/templates/config.tx

@@ -19,7 +19,7 @@ If for example, you use mysql it will have to rely on either a local server, val
     Data Model:
     <select class="cooltext" name="data_model">
         : for $data_models -> $dm {
-        <option value="<: $dm :>"><: $dm :></option>
+        <option value="<: $dm :>"><: $dm :> <: if ( $current_data_model == $dm ) { :>selected<: } :> </option>
         : }
     </select>
     </div>