summaryrefslogtreecommitdiff
path: root/ishtar_pdl/static/pdl/JQueryCorporation.js
blob: e65001506c71aa4a2d64e189ec7f20882fcba1ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var current_status = 'corporation';

$(function() {
    var $radios = $('input:radio[name=person_type]');
    if($radios.is(':checked') === false) {
        $radios.filter('[value='+ current_status +']').prop('checked', true);
    }

    $radios.change(function(){
        var loc = window.location;
        window.location = loc.protocol + '//' + loc.host + loc.pathname + "?status=" + $('input:radio[name=person_type]:checked').val();
    });
    $("#corporation_div").show();
});