Sha256: d92a37fae586e8a3e08298c73c0a4e0c7161ea74380dc41125f808388f9d8241
Contents?: true
Size: 1.1 KB
Versions: 55
Compression:
Stored size: 1.1 KB
Contents
var Renalware = typeof Renalware === 'undefined' ? {} : Renalware; Renalware.Renal = (function () { var setAllComobidityOptionsToNo = function() { $(document).on( "click", "a.set_all_comorbidities_to_no", function(e) { e.preventDefault(); $(".comorbidities input[type=radio]").filter("[value=no],[value=non_smoker]") .prop("checked", true); }); }; // If the user wants to overwrite or copy in the patient's current address, clone this // from a hidden form and use it to replace the existing visible address form. var wireUpUseCurrentAddressButton = function() { $("body.renal-profile-edit").on("click", "#use-current-address-for-address-at-diagnosis", function(e) { e.preventDefault(); $("#hidden-current-address-form .form-content") .clone() .replaceAll("#visible-address-form .form-content") }); } return { init : function() { setAllComobidityOptionsToNo(); wireUpUseCurrentAddressButton(); } } })(); $(document).ready(Renalware.Renal.init);
Version data entries
55 entries across 55 versions & 1 rubygems