mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 12:08:47 +01:00
fixup some jslint errors
This commit is contained in:
parent
41934a3da6
commit
b0a559d899
1 changed files with 17 additions and 9 deletions
|
|
@ -1,10 +1,10 @@
|
|||
replace_project_with_edit_form();
|
||||
function html_for_edit_form() {
|
||||
return "<%= escape_javascript(render(:partial => 'project_form', :object => @project)) %>";
|
||||
}
|
||||
|
||||
function replace_project_with_edit_form() {
|
||||
$('div#<%=dom_id(@project)%>').fadeOut(250, function() {
|
||||
show_edit_form();
|
||||
set_focus();
|
||||
enable_rich_interaction();
|
||||
function remove_edit_form() {
|
||||
$('div#<%= dom_id(@project, 'edit') %>').fadeOut(250, function() {
|
||||
$('div#<%= dom_id(@project) %>').fadeIn(250);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -17,6 +17,14 @@ function set_focus() {
|
|||
$('input.project-name').focus();
|
||||
}
|
||||
|
||||
function html_for_edit_form() {
|
||||
return "<%= escape_javascript(render(:partial => 'project_form', :object => @project)) %>"
|
||||
}
|
||||
|
||||
function replace_project_with_edit_form() {
|
||||
$('div#<%=dom_id(@project)%>').fadeOut(250, function() {
|
||||
show_edit_form();
|
||||
set_focus();
|
||||
enable_rich_interaction();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
replace_project_with_edit_form();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue