mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 22:41:48 +01:00
migrate editing project settings from project page from jrails to jquery
This commit is contained in:
parent
c834403340
commit
6416ff112e
8 changed files with 884 additions and 66 deletions
|
|
@ -2,10 +2,4 @@ newHtml = "<%= escape_javascript(render(:partial => 'project_form', :locals => {
|
|||
$('div#<%=dom_id(@project, 'edit')%>').html(newHtml);
|
||||
$('div#<%=dom_id(@project)%>').hide();
|
||||
$('div#<%=dom_id(@project, 'edit')%>').show();
|
||||
|
||||
$('input.project-name').focus();
|
||||
|
||||
<%#*page[dom_id(@project, 'edit')].replace_html :partial => 'project_form', :locals => { :project_form => @project }%>
|
||||
<%#*page[@project].hide%>
|
||||
<%#*page[dom_id(@project, 'edit')].show%>
|
||||
<%#*page[dom_id(@project, 'edit_form')].find('input.project-name').focus%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue