Sha256: f718ee90c8d691ed6d73bc05ad2ed4b44691338e19f91ee8cb65e7a21049f75c
Contents?: true
Size: 868 Bytes
Versions: 6
Compression:
Stored size: 868 Bytes
Contents
<% if @feature.errors.blank? %> $('#tr_feature_<%= @feature.id %>').replaceWith("<%= escape_javascript(render(:partial=>'/usman/admin/features/row', locals: {feature: @feature})) %>"); $("#tr_feature_<%= @feature.id %>").css("background-color", "#fffddd"); closeGenericModal(); <% else %> // Show the form in the modal heading = "Edit '<%= raw @feature.name_was %>'"; bodyContent = "<%= escape_javascript(render(:partial=>'/usman/admin/features/form')) %>"; showGenericModal(heading, bodyContent); var $div = $('<iframe id="iframe_feature" name="iframe_feature" width="100%" style="display:none"></iframe>').appendTo('body'); <% text = "You have few errors. They have been highlighted." error_message = content_tag(:div, text, class: "alert alert-danger") %> $("#feature_form_error").html("<%= escape_javascript(error_message) %>"); <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems