X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/796338e669626012da93ebea5ec7afa482a70ed7..9255c2fe5083c35b4f6e5c098813842025f4772d:/src/editor/views/dialog/templates/select.html

diff --git a/src/editor/views/dialog/templates/select.html b/src/editor/views/dialog/templates/select.html
index 1e527a6..301fb63 100644
--- a/src/editor/views/dialog/templates/select.html
+++ b/src/editor/views/dialog/templates/select.html
@@ -2,7 +2,7 @@
     <div style="float: left; width:100px;"><%= label %>:</div>
     <select name="<%= name %>">
     <% options.forEach(function(option) { %>
-        <option value="<%= option.value %>"><%= option.text %></option>
+        <option <% if (initialValue == option.value) { %>selected="selected" <% } %>value="<%= option.value %>"><%= option.text %></option>
     <% }); %>
     </select>
     <span class="description"><%= description %></span>