/* Minified: jquery.remindersHomescreenWidget.js, widgets.SelectReminderTo.js */
jQuery.fn.remindersHomescreenWidget=function(s){var settings=jQuery.extend({},s);return this.each(function(){var wrapper=$(this);wrapper.find("a.reminder_dismiss").asyncLink({type:"post",success_message:App.lang("Reminder dismissed"),indicator_url:App.Wireframe.Utils.indicatorUrl("small"),before:function(){$(this).addClass("processing")},complete:function(){$(this).removeClass("processing")},success:function(reminder){App.Wireframe.Events.trigger("reminder_deleted",[reminder])}});App.Wireframe.Events.bind("reminder_deleted.single",function(event,reminder){var reminder_row=wrapper.find('li[reminder_id="'+reminder.id+'"]');if(reminder_row.length){reminder_row.remove()}if(!wrapper.find("li.reminder").length){wrapper.parents(".homescreen_widget:first").remove()}});if(!wrapper.find("li.reminder").length){wrapper.parents(".homescreen_widget:first").remove()}})};
App.widgets.SelectReminderTo=function(){return{init:function(wrapper_id){var wrapper=$("#"+wrapper_id);wrapper.find("input.select_reminder_to_option_radio").click(function(){wrapper.find("div.select_reminder_to_option_content").hide();var content=$(this).parent().find("div.select_reminder_to_option_content");if(content.length>0){content.show()}})}}}();
