mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 01:08:50 +01:00
Fix Edit Project Settings link on project show page
This commit is contained in:
parent
8738481f31
commit
48f7f25702
2 changed files with 7 additions and 5 deletions
|
|
@ -19,8 +19,8 @@
|
|||
:url => {:controller => 'projects', :action => 'edit', :id => project.id},
|
||||
:method => 'get',
|
||||
:with => "'_source_view=#{@source_view}'",
|
||||
:before => "$('#{dom_id(project)}').startWaiting();",
|
||||
:complete => "$('#{dom_id(project)}').stopWaiting();"
|
||||
:before => "$('#{dom_id(project)}').block({message: null});",
|
||||
:complete => "$('#{dom_id(project)}').unblock();"
|
||||
) %>
|
||||
</div>
|
||||
<% unless project.description.blank? -%>
|
||||
|
|
@ -28,4 +28,4 @@
|
|||
<% end -%>
|
||||
</div>
|
||||
<div id="<%= dom_id(project, 'edit') %>" class="edit-form" style="display:none;">
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -271,8 +271,9 @@ $(document).ready(function() {
|
|||
'Add a next action »', 'Add a next action');
|
||||
});
|
||||
|
||||
$('.item-container .edit-form a.negative').live('click', function(){
|
||||
$('.edit-form a.negative').live('click', function(){
|
||||
$(this).parents('.container').find('.item-show').show();
|
||||
$(this).parents('.container').find('.project').show();
|
||||
$(this).parents('.edit-form').hide();
|
||||
});
|
||||
|
||||
|
|
@ -388,6 +389,7 @@ $(document).ready(function() {
|
|||
$("#list-active-projects").sortable({handle: '.handle', update: update_project_order});
|
||||
$("#list-hidden-projects").sortable({handle: '.handle', update: update_project_order});
|
||||
$("#list-completed-projects").sortable({handle: '.handle', update: update_project_order});
|
||||
|
||||
|
||||
/* Gets called from some AJAX callbacks, too */
|
||||
enable_rich_interaction();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue