Sha256: 8a1d2e4456f6ebd43ec240c40731136d2c2796ca889f023a274190a222c46a01
Contents?: true
Size: 666 Bytes
Versions: 44
Compression:
Stored size: 666 Bytes
Contents
$(() => { const $limitiedTimeLabel = $("label[for='component_settings_proposal_edit_time_limited']") const $limitedTimeRadioButton = $("#component_settings_proposal_edit_time_limited") const $infiniteTimeRadioButton = $("#component_settings_proposal_edit_time_infinite") const $editTimeContainer = $(".proposal_edit_before_minutes_container") $editTimeContainer.detach().appendTo($limitiedTimeLabel) if ($infiniteTimeRadioButton.is(":checked")) { $editTimeContainer.hide(); } $limitedTimeRadioButton.on("click", () => { $editTimeContainer.show(); }) $infiniteTimeRadioButton.on("click", () => { $editTimeContainer.hide(); }) })
Version data entries
44 entries across 44 versions & 1 rubygems