From b47bc4092c8a48801ea199578e540c82b2a53fc1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 31 Oct 2017 19:39:19 +0100 Subject: UI: change colors - manage footer --- ishtar_common/static/js/JQueryCorporation.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ishtar_common/static/js/JQueryCorporation.js (limited to 'ishtar_common/static/js/JQueryCorporation.js') 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(); +}); -- cgit v1.2.3