Sha256: 76dc96eeec670b801f11502bae389af043f9f985689f4c69b5b1b97d3f7f83e0
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 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); $('#signup_keyword, #project_keyword').val(mainPart); }); }); <% end %> <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.1.15 | app/views/shared/_saucy_javascript.html.erb |