mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 15:31:47 +01:00
get further testing tunning for projects
This commit is contained in:
parent
7c9102453c
commit
cde8ad35fd
8 changed files with 94 additions and 49 deletions
|
|
@ -1,5 +1,9 @@
|
|||
newHtml = "<%= escape_javascript(render(:partial => 'project_form', :locals => { :project_form => @project })) %>"
|
||||
$('div#<%=dom_id(@project, 'edit')%>').html(newHtml);
|
||||
$('div#<%=dom_id(@project)%>').hide();
|
||||
$('div#<%=dom_id(@project, 'edit')%>').show(500);
|
||||
$('input.project-name').focus();
|
||||
|
||||
$('div#<%=dom_id(@project)%>').fadeOut(250, function() {
|
||||
$('div#<%=dom_id(@project, 'edit')%>').html(newHtml);
|
||||
$('div#<%=dom_id(@project, 'edit')%>').fadeIn(500);
|
||||
$('input.project-name').focus();
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue