浏览代码

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| %>
     <% @bind_vars.each_with_index do |var, i| %>
       <%= label_tag var, var %>
       <%= label_tag var, var %>
       <% if (data = @smart_vars[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>
         <script>
           $("#<%= var %>").selectize({
           $("#<%= var %>").selectize({
             create: true
             create: true

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

@@ -63,7 +63,7 @@
     <% @bind_vars.each_with_index do |var, i| %>
     <% @bind_vars.each_with_index do |var, i| %>
       <%= label_tag var, var %>
       <%= label_tag var, var %>
       <% if (data = @smart_vars[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>
         <script>
           $("#<%= var %>").selectize({
           $("#<%= var %>").selectize({
             create: true
             create: true