diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-31 19:39:19 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-31 19:39:19 +0100 | 
| commit | b47bc4092c8a48801ea199578e540c82b2a53fc1 (patch) | |
| tree | 5c8d24e3cbccaa0ca00100448d1d2088ceda9b8c /ishtar_common/static/js | |
| parent | b98bfcfe20c9af59f69b7606c0351b4bbf344d00 (diff) | |
| download | Ishtar-b47bc4092c8a48801ea199578e540c82b2a53fc1.tar.bz2 Ishtar-b47bc4092c8a48801ea199578e540c82b2a53fc1.zip  | |
UI: change colors - manage footer
Diffstat (limited to 'ishtar_common/static/js')
| -rw-r--r-- | ishtar_common/static/js/JQueryCorporation.js | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/ishtar_common/static/js/JQueryCorporation.js b/ishtar_common/static/js/JQueryCorporation.js new file mode 100644 index 000000000..e65001506 --- /dev/null +++ b/ishtar_common/static/js/JQueryCorporation.js @@ -0,0 +1,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(); +});  | 
