Make open source
This commit is contained in:
1
app/assets/javascripts/active_admin.js
Normal file
1
app/assets/javascripts/active_admin.js
Normal file
@ -0,0 +1 @@
|
||||
//= require active_admin/base
|
19
app/assets/javascripts/application.js
Normal file
19
app/assets/javascripts/application.js
Normal file
@ -0,0 +1,19 @@
|
||||
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
||||
// listed below.
|
||||
//
|
||||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
||||
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
||||
//
|
||||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
||||
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
||||
//
|
||||
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
||||
// about supported directives.
|
||||
//
|
||||
//= require rails-ujs
|
||||
//= require jquery
|
||||
//= require popper
|
||||
//= require bootstrap-sprockets
|
||||
|
||||
//= require_tree .
|
||||
//= stub active_admin
|
13
app/assets/javascripts/guests.js
Normal file
13
app/assets/javascripts/guests.js
Normal 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()
|
||||
})
|
2
app/assets/javascripts/plus_ones.js
Normal file
2
app/assets/javascripts/plus_ones.js
Normal file
@ -0,0 +1,2 @@
|
||||
// Place all the behaviors and hooks related to the matching controller here.
|
||||
// All this logic will automatically be available in application.js.
|
2
app/assets/javascripts/welcome.js
Normal file
2
app/assets/javascripts/welcome.js
Normal file
@ -0,0 +1,2 @@
|
||||
// Place all the behaviors and hooks related to the matching controller here.
|
||||
// All this logic will automatically be available in application.js.
|
Reference in New Issue
Block a user