removing aspect in ui only if ok is clicked on confirmation
This commit is contained in:
parent
7cb034ec9d
commit
087f7e90d4
2 changed files with 4 additions and 2 deletions
|
|
@ -11,7 +11,9 @@
|
|||
|
||||
$(".aspects li").find(".delete").live("click", function(){
|
||||
var aspectElement = $(this).parent("li");
|
||||
aspectElement.fadeOut(300, function(){aspectElement.remove();});
|
||||
if (confirm("are you sure?")){
|
||||
aspectElement.fadeOut(300, function(){aspectElement.remove();});
|
||||
}
|
||||
});
|
||||
|
||||
- if current_user.getting_started == true
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
#add_request_pane
|
||||
= render "requests/new_request", :aspect => aspect, :getting_started => 2
|
||||
|
||||
= link_to "x", aspect_path(aspect), :confirm => "are you sure?", :method => :delete, :remote => true, :class => "delete right"
|
||||
= link_to "x", aspect_path(aspect), :method => :delete, :remote => true, :class => "delete right"
|
||||
|
||||
%br
|
||||
%br
|
||||
|
|
|
|||
Loading…
Reference in a new issue