Sha256: 23c832146ecf5ae924651532a953606a3304755086d9ceb5cb28f1b281ac9885
Contents?: true
Size: 1.16 KB
Versions: 41
Compression:
Stored size: 1.16 KB
Contents
var Renalware = typeof Renalware === 'undefined' ? {} : Renalware; Renalware.FeedOnlyInputs = (function() { // Disable any input/textarea/selects having a data attribute suggesting it is controlled by an // external feed. The data in these inouts can be overwritten by the feed at any time so it // makes sense not to allow user input. // Note that this js file is only re-parsed when it changes, so if you change the value of // e.g. disable_inputs_controlled_by_tissue_typing_feed in an initializer, it will not // take affect until you clear the assets, or make a change to this file etc. var disableFeedOnlyInputs = function() { <% if Renalware.config.disable_inputs_controlled_by_tissue_typing_feed %> $("input,textarea,select").filter("[data-controlled-by-tissue-typing-feed]").prop("disabled", true); <% end %> <% if Renalware.config.disable_inputs_controlled_by_demographics_feed %> $("input,textarea,select").filter("[data-controlled-by-demographics-feed]").prop("disabled", true); <% end %> }; return { init: function () { disableFeedOnlyInputs(); } }; }()); $(document).ready(Renalware.FeedOnlyInputs.init);
Version data entries
41 entries across 41 versions & 1 rubygems