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:
Reinier Balt 2012-03-29 21:14:48 +02:00
parent af10e74017
commit ff4a376ee9
3 changed files with 18 additions and 14 deletions

View file

@ -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();
});
}