Sha256: 1a48e22c1bff70d7e875b816eebe6cede20893a7b4159d1d51683ec40fd9772e
Contents?: true
Size: 1.1 KB
Versions: 121
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
121 entries across 121 versions & 1 rubygems