mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
This reverts commit 6f8ae925ba.
Conflicts:
app/assets/stylesheets/bootplus_overrides.css.less
32 lines
815 B
CoffeeScript
32 lines
815 B
CoffeeScript
$(document).ready ->
|
|
|
|
# Character name generator
|
|
$('.character_name_generator').click ->
|
|
target = $(this).closest('.row').find('input[type=text]')
|
|
$.ajax
|
|
dataType: 'text'
|
|
url: '/generate/character/name'
|
|
success: (data) ->
|
|
target.val data
|
|
0
|
|
|
|
# Character age generator
|
|
$('.character_age_generator').click ->
|
|
target = $(this).closest('.row').find('input[type=text]')
|
|
$.ajax
|
|
dataType: 'text'
|
|
url: '/generate/character/age'
|
|
success: (data) ->
|
|
target.val data
|
|
0
|
|
|
|
# Location name generator
|
|
$('.location_name_generator').click ->
|
|
target = $(this).closest('.row').find('input[type=text]')
|
|
$.ajax
|
|
dataType: 'text'
|
|
url: '/generate/location/name'
|
|
success: (data) ->
|
|
target.val data
|
|
0
|