mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 23:54:07 +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
|
|
@ -8,7 +8,7 @@
|
|||
remove_project();
|
||||
add_project();
|
||||
<% else -%>
|
||||
replace_project();
|
||||
replace_project_form_with_updated_project();
|
||||
<% end -%>
|
||||
|
||||
update_sortable();
|
||||
|
|
@ -59,12 +59,12 @@ function update_sidebar() {
|
|||
}
|
||||
|
||||
function update_sortable() {
|
||||
<%#* page.sortable "list-#{@project.state}-projects", get_listing_sortable_options("list-#{@project.state}-projects")%>
|
||||
<%#* page.sortable "list-#{@project.state}-projects", get_listing_sortable_options("list-#{@project.state}-projects")-%>
|
||||
console.log("Pending: update_sortable() on update project");
|
||||
}
|
||||
|
||||
function replace_project() {
|
||||
$('#<%=dom_id(@project, 'container')%>').fadeOut(500, function() {
|
||||
function replace_project_form_with_updated_project() {
|
||||
$('#<%=dom_id(@project, 'container')%>').fadeOut(250, function() {
|
||||
$('#<%=dom_id(@project, 'container')%>').html(html_for_project_listing());
|
||||
$('#<%=dom_id(@project, 'container')%>').fadeIn(500);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue