Sfoglia il codice sorgente

Use getItem to try an fix transient issue with name

Andrew Kane 8 anni fa
parent
commit
1678cb8733
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/views/blazer/dashboards/_form.html.erb

+ 2 - 2
app/views/blazer/dashboards/_form.html.erb

@@ -51,7 +51,7 @@
         maxOptions: 100,
         maxOptions: 100,
         onChange: function(val) {
         onChange: function(val) {
           if (val) {
           if (val) {
-            var option = this.getOption(val)
+            var item = this.getItem(val)
 
 
             // if duplicate query is added, remove the first one
             // if duplicate query is added, remove the first one
             for (var i = 0; i < app.queries.length; i++) {
             for (var i = 0; i < app.queries.length; i++) {
@@ -61,7 +61,7 @@
               }
               }
             }
             }
 
 
-            app.queries.push({id: val, name: option.text()})
+            app.queries.push({id: val, name: item.text()})
             this.setValue("")
             this.setValue("")
           }
           }
         }
         }