fix 新聞與公告QA

1.優先處理-快速編輯中的檔案上傳無法新增,但可刪除
	2.優先處理-編輯中的檔案列表,無法刪除
	3.優先處理-刪除時應彈出警告視窗,請user確認一次,再將檔案刪除
This commit is contained in:
Matthew K. Fu JuYuan committed 2012-06-27 14:21:06 +08:00
1 parent 4c4929c20a
commit 55449efb35
4 files changed
+15 -4

No files matched your search

+4 -2
View File
@@ -9,8 +9,10 @@ $('.bulletin_files_block a.delete').live('click', function(){
});
$(document).on('click', '.action a.remove_existing_record', function(){
$(this).next('.should_destroy').attr('value', 1);
$("tr #" + $(this).prev().attr('value')).hide();
if(confirm("<%= I18n.t('announcement.sure?')%>")){
$(this).next('.should_destroy').attr('value', 1);
$("tr#" + $(this).prev().attr('value')).hide();
}
});
$(document).on('click', '.quick_edit_cancel', function(){
@@ -10,8 +10,10 @@ $('.news_bulletin_files_block a.delete').live('click', function(){
});
$(document).on('click', '.action a.remove_existing_record', function(){
$(this).next('.should_destroy').attr('value', 1);
$("tr#" + $(this).prev().attr('value')).hide();
if(confirm("<%= I18n.t('news.sure?')%>")){
$(this).next('.should_destroy').attr('value', 1);
$("tr#" + $(this).prev().attr('value')).hide();
}
});
$(document).on('click', '.quick_edit_cancel', function(){