Files
eminuxCRM/app/javascript/controllers/check_all_controller.js
T
eminuxandCursor c4e5f289cf
CI / scan_ruby (push) Failing after 11m20s
CI / scan_js (push) Successful in 10m35s
CI / lint (push) Has been cancelled
Commit iniziale di eminuxCRM: CRM Rails con pipeline, campagne email e Docker.
Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 23:01:48 +02:00

13 lines
294 B
JavaScript

import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = ["source", "checkbox"]
toggle() {
const checked = this.sourceTarget.checked
this.checkboxTargets.forEach((el) => {
if (!el.disabled) el.checked = checked
})
}
}