Make open source

This commit is contained in:
John Lees-Miller
2018-10-27 16:46:26 +01:00
commit 6e82ba528b
163 changed files with 3912 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
$(function () {
var radioMatcher = '#guest-edit-form input[name="guest[attending]"]'
var radioButtons = $(radioMatcher)
function toggleAttendingOnly () {
var attending = $(radioMatcher + ':checked').val()
$('.guest-attending-only textarea').attr('disabled', attending !== 'true')
}
radioButtons.on('change', toggleAttendingOnly)
toggleAttendingOnly()
})