Sha256: 5a598b7c23546be76611dc25457dbd2e9f5301c470e9a77327acf3fe46d82556

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

let choices = document.querySelectorAll(".choices")
let initChoice
for (let i = 0; i < choices.length; i++) {
  if (choices[i].classList.contains("multiple-remove")) {
    initChoice = new Choices(choices[i], {
      delimiter: ",",
      editItems: true,
      maxItemCount: -1,
      removeItemButton: true,
    })
  } else {
    initChoice = new Choices(choices[i])
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mazer-rails-0.1.4 vendor/assets/javascripts/pages/form-element-select.js
mazer-rails-0.1.3 vendor/assets/javascripts/pages/form-element-select.js
mazer-rails-0.1.2 assets/javascripts/pages/form-element-select.js