Sha256: b7f838a66d4db41a572f19dae87c3f3b7e624cdb50011ec67e457cb9431d714d

Contents?: true

Size: 228 Bytes

Versions: 3

Compression:

Stored size: 228 Bytes

Contents

Stimulus.register("autosubmit", class extends Controller {
  call(event) {
    for (let e of this.element.elements) {
      if (e.name && $(e).val() == "") {
        return
      }
    }

    this.element.requestSubmit()
  }
})

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
finery-3.0.3 app/assets/javascripts/blazer/controllers/autosubmit_controller.js
finery-3.0.2 app/assets/javascripts/blazer/controllers/autosubmit_controller.js
finery-3.0.1 app/assets/javascripts/blazer/controllers/autosubmit_controller.js