Sha256: e92389eb278722028de12c9ba1168e2972628eed2c9136ed76702f5adb52a7a7
Contents?: true
Size: 1.07 KB
Versions: 15
Compression:
Stored size: 1.07 KB
Contents
<div id="<%=widget_result_id%>"></div> <div> <%= form_tag '/users/reset_password', :remote => true, :id => 'reset_password_form' do %> <div class="form_settings"> <p> <span style="width:175px">Username or Email Address</span> <%= text_field_tag "login"%> </p> <input type="hidden" name="login_url" value="<%=@login_url%>" /> <input type="hidden" name="domain" value="<%=@domain%>" /> <p style="padding-top: 15px"> <span style="width:175px"> </span> <%= submit_tag "Reset", :disable_with => "Please wait...", :class => "submit", :style => 'margin: 0 0 0 0px;'%> </p> </div> <% end %> </div> <script type="text/javascript"> jQuery('#reset_password_form').bind('ajaxComplete', function(e, xhr, settings){ var response = jQuery.parseJSON(xhr.responseText); if(response.success){ jQuery('#<%=widget_result_id%>').html('<div class="sexynotice">'+response.message+'</div>'); } else{ jQuery('#<%=widget_result_id%>').html('<div class="sexyerror">'+response.message+'</div>'); } }); </script>
Version data entries
15 entries across 15 versions & 1 rubygems