删除主留言时确认删除的提示信息

This commit is contained in:
linhk 2014-08-23 16:41:07 +08:00
parent 87f8e90f25
commit 9f3392eba8
3 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,6 @@ class WordsController < ApplicationController
end
def destroyJournal
@journalP=JournalsForMessage.find(params[:object_id])
@journalP.destroy

View File

@ -85,7 +85,7 @@ function checkMaxLength() {
<% if User.current.logged? %>
<% if journal.user_id==User.current.id|| User.current.admin? %>
<%= link_to(l(:button_delete),{:controller => 'words', :action => 'destroyJournal', :object_id => journal.id, :project_id=>@project.id, :page=>@page},
:remote => true, :title => l(:button_delete)) %>
:remote => true, :title => l(:button_delete), :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete") %>
<% end %>
<% end %>
</span>

View File

@ -652,6 +652,7 @@ RedmineApp::Application.routes.draw do
post 'words/append', :to => 'words#append'
post 'words/create_reply', :to => 'words#create_reply'
delete 'words/destroy', :to => 'words#destroy'
delete 'words/destroyJournal', :to => 'words#destroyJournal'
get 'words/more', :to => 'words#more'
get 'words/back', :to=> 'words#back'
get 'words/destroyJournal', :to => 'words#destroyJournal'