Skip to content

Commit

Permalink
Fix to select-many javascript for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
tslocke committed Jun 23, 2008
1 parent 84181ec commit 662f4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hobo/rails_generators/hobo_rapid/templates/hobo-rapid.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ SelectManyInput = Behavior.create({
addOne : function() {
var select = this.element.down('select')
var selected = select.options[select.selectedIndex]
if (selected.value != "") {
if ($F(select) != "") {
var newItem = $(DOM.Builder.fromHTML(this.element.down('.item-proto').innerHTML.strip()))
this.element.down('.items').appendChild(newItem);
newItem.down('span').innerHTML = selected.innerHTML
Expand Down Expand Up @@ -589,7 +589,7 @@ NameManyInput = Object.extend(SelectManyInput, {
addOne : function() {
var select = this.element.down('select')
var selected = select.options[select.selectedIndex]
if (selected.value != "") {
if ($F(select) != "") {
var newItem = $(DOM.Builder.fromHTML(this.element.down('.item-proto').innerHTML.strip()))
this.element.down('.items').appendChild(newItem);
newItem.down('span').innerHTML = selected.innerHTML
Expand Down

0 comments on commit 662f4f7

Please sign in to comment.