From b3cdffb59ef0f0cbc0dcef497f352912bb4457d7 Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 27 Jul 2013 15:57:14 +0800 Subject: [PATCH] Fix typo --- .../views/panel/announcement/back_end/bulletins/_form.html.erb | 2 +- .../views/panel/archive/back_end/archive_files/_form.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb index 728eb3b6..aa2edcbf 100644 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb +++ b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb @@ -303,7 +303,7 @@ }); $(document).on('click', '.remove_existing_record', function(){ if(confirm("<%= I18n.t(:sure?)%>")){ - $(this).next('.should_destroy').attr('value', 1); + $(this).children('.should_destroy').attr('value', 1); $(this).parents('.start-line').hide(); } }); diff --git a/vendor/built_in_modules/archive/app/views/panel/archive/back_end/archive_files/_form.html.erb b/vendor/built_in_modules/archive/app/views/panel/archive/back_end/archive_files/_form.html.erb index 7ce3574f..9712c1d4 100644 --- a/vendor/built_in_modules/archive/app/views/panel/archive/back_end/archive_files/_form.html.erb +++ b/vendor/built_in_modules/archive/app/views/panel/archive/back_end/archive_files/_form.html.erb @@ -188,7 +188,7 @@ }); $(document).on('click', '.remove_existing_record', function(){ if(confirm("<%= I18n.t(:sure?)%>")){ - $(this).next('.should_destroy').attr('value', 1); + $(this).children('.should_destroy').attr('value', 1); $(this).parents('.start-line').hide(); } });