mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-09 22:22:37 +01:00
fix #1245 by managing pages with more than one project in a list
Update still looks ugly. I'd like to see things more seperated for project list page and review page. Todo!
This commit is contained in:
parent
af10e74017
commit
ff4a376ee9
3 changed files with 18 additions and 14 deletions
|
|
@ -3,8 +3,8 @@ function html_for_edit_form() {
|
|||
}
|
||||
|
||||
function show_edit_form() {
|
||||
$('div#<%=dom_id(@project, 'edit')%>').html(html_for_edit_form());
|
||||
$('div#<%=dom_id(@project, 'edit')%>').fadeIn(500);
|
||||
$('div.project-edit-current div#<%=dom_id(@project, 'edit')%>').html(html_for_edit_form());
|
||||
$('div.project-edit-current div#<%=dom_id(@project, 'edit')%>').fadeIn(500);
|
||||
$('div#project_name').editable('disable');
|
||||
}
|
||||
|
||||
|
|
@ -12,12 +12,10 @@ function set_focus() {
|
|||
$('input.project-name').focus();
|
||||
}
|
||||
|
||||
|
||||
function replace_project_with_edit_form() {
|
||||
$('div#<%=dom_id(@project)%>').fadeOut(250, function() {
|
||||
$('div.project-edit-current div#<%=dom_id(@project)%>').fadeOut(250, function() {
|
||||
show_edit_form();
|
||||
set_focus();
|
||||
enable_rich_interaction();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue