Sha256: b2437905c5b981554f5ad6e6dd8bfc00f7327e3f7c7e52a8d5434202e929ade8
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
<%= content_for :javascript do -%> <%= javascript_tag do %> $(function() { $('#signup_account_name_input p.inline-hints, #project_name_input p.inline-hints').each(function(index) { $(this).html($(this).text().replace("keyword", "<span>keyword</span>")) }); $('#signup_account_name, #project_name').keyup(function(){ var mainPart = /^([\w\s]*)(\W*)/.exec($(this).val())[1]; mainPart = mainPart.replace(/ /g, "") if(mainPart == "") mainPart = "keyword"; $(this).siblings('p.inline-hints').find('span').text(mainPart); }); }); <% end %> <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.1.14 | app/views/shared/_saucy_javascript.html.erb |
saucy-0.1.13 | app/views/shared/_saucy_javascript.html.erb |