diff --git a/app/views/admin/feeds/announcements.html.erb b/app/views/admin/feeds/announcements.html.erb index 28185d1..ef3426c 100644 --- a/app/views/admin/feeds/announcements.html.erb +++ b/app/views/admin/feeds/announcements.html.erb @@ -89,7 +89,7 @@ } }) } - $('.annc_title').click(function(){ + $(document).on('click','.annc_title',function(){ var parent_tr = $(this).parents('tr').eq(-1) $.ajax({ url : "/<%= I18n.locale.to_s %>/admin/feeds/annc_content", @@ -105,7 +105,7 @@ $('.content_show_div').eq(-1).dialog('open') } }) - }) + }); $(document).ready(function(){ var window_width = window.innerWidth var window_height = window.innerHeight