Sha256: d42d912ac4d681ca01773f6663f927c904e0b05b3831ccc7be677526ce36bbc6
Contents?: true
Size: 1.02 KB
Versions: 7
Compression:
Stored size: 1.02 KB
Contents
<form id="cols" onsubmit="fields_submit();return false;" action="/collections/refresh/" method="post"> <div style="width:80%;overflow:hidden;float:left"> <% @cols.each do |col|%> <fieldset class="check"> <input id="<%=col%>" type="checkbox" name="cols[<%=col%>]" value="1" <%=@selected_cols.include?(col) ? "checked" : ""%>/> <label for='<%=col%>'><%=col%></label> </fieldset> <% end %> </div> <fieldset style="float:right;"> <button type="submit" id="submit_button" class="button show">show</button> <img id="show_load" src="/images/loading.gif" style="width:20px;height:20px;vertical-align:top;display:none"></img> </fieldset> </form> <script> function fields_submit() { $.ajax({ data: $.param( $("form#cols").serializeArray() ), dataType: 'script', type: 'post', url: '/collections/refresh/<%=@page%>/', beforeSend: function() { $('img#show_load').show(); }, complete: function() { $('img#show_load').hide(); } }); } </script>
Version data entries
7 entries across 7 versions & 1 rubygems