Created
February 29, 2012 07:12
-
-
Save luckyruby/1938783 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#cartypes, #ratecodes').live 'change', -> | |
$('#rates_grid').trigger 'reloadGrid' | |
#set values of hidden inputs in form | |
location = $('#loc_select').val() | |
cartype = $('#cartypes').val() | |
ratecode = $('#ratecodes').val() | |
$('#location').val(location) | |
$('#cartype').val(cartype) | |
$('#ratecode').val(ratecode) | |
$("#loc_select").live 'change', -> | |
$.get '/rates/refresh_location', loc: $(this).val() | |
$ -> | |
#set values of hidden inputs in form | |
location = $('#loc_select').val() | |
cartype = $('#cartypes').val() | |
ratecode = $('#ratecodes').val() | |
$('#location').val(location) | |
$('#cartype').val(cartype) | |
$('#ratecode').val(ratecode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment