Преглед на файлове

Fixed flash of unstylized content

Andrew Kane преди 9 години
родител
ревизия
3becf552fc
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      app/views/blazer/dashboards/show.html.erb
  2. 1 1
      app/views/blazer/queries/show.html.erb

+ 1 - 1
app/views/blazer/dashboards/show.html.erb

@@ -44,7 +44,7 @@
     <% @bind_vars.each_with_index do |var, i| %>
       <%= label_tag var, var %>
       <% if (data = @smart_vars[var]) %>
-        <%= select_tag var, options_for_select([[nil, nil]] + data, selected: params[var]), style: "margin-right: 20px; width: 200px;" %>
+        <%= select_tag var, options_for_select([[nil, nil]] + data, selected: params[var]), style: "margin-right: 20px; width: 200px; display: none;" %>
         <script>
           $("#<%= var %>").selectize({
             create: true

+ 1 - 1
app/views/blazer/queries/show.html.erb

@@ -63,7 +63,7 @@
     <% @bind_vars.each_with_index do |var, i| %>
       <%= label_tag var, var %>
       <% if (data = @smart_vars[var]) %>
-        <%= select_tag var, options_for_select([[nil, nil]] + data, selected: params[var]), style: "margin-right: 20px; width: 200px;" %>
+        <%= select_tag var, options_for_select([[nil, nil]] + data, selected: params[var]), style: "margin-right: 20px; width: 200px; display: none;" %>
         <script>
           $("#<%= var %>").selectize({
             create: true