Sha256: e1885884a241d0b6edc130a0f58d03acda64af17cb1b7286b7d750994dd1e508
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
<%= grouped_fields_tag "Dados gerais" do %> <%= render 'main', :f => f %> <% end %> <script> $("#material_material_classification").change(function() { setControlAmount(); }); function setControlAmount() { var controlAmount = $('.control-amount'), materialType = $("#material_material_classification").val(); if (materialType == "<%= MaterialClassificationType::SERVICE %>") { controlAmount.show(); } else { controlAmount.find(':input').removeAttr('checked'); controlAmount.hide(); } } (function(){ setControlAmount(); })(); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unico-training-7.8.0 | app/views/materials/_form.html.erb |