$("#navbar-pop-eventview").pop({html: "<div class=\"calendar-event-view-box\">\n\n <div style=\"padding: 30px 20px 60px;\">\n <table class=\"wo-tab wo-modal-tab calendar-event-view-fields\">\n\n <tr>\n <td style=\"width:150px\" class=\"calendar-event-view-fields-key\">Dato<\/td>\n <td class=\"calendar-event-view-fields-value\">\n\n 05.05.2015\n <\/td>\n <\/tr>\n <tr>\n <td style=\"width:150px\" class=\"calendar-event-view-fields-key\">Dato for aktivitet<\/td>\n <td class=\"calendar-event-view-fields-value\">\n <p>Det er 25 datoer for denne aktiviteten<\/p>\n <span id=\"instance-list-button\" class=\"btn btn-normal\" data-toggle=\"#instances-list\" data-show=\"Vis alle\" data-hide=\"Skjul\" data-showing=\"0\">Vis alle<\/span>\n <div class=\"calendar-event-togglebox\" id=\"instances-list\">\n <table class='occur-list'>\n\n <tr class=\"current\">\n <td>05.05.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>12.05.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>19.05.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>26.05.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>02.06.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>09.06.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>16.06.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>23.06.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>30.06.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>07.07.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>14.07.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>21.07.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>28.07.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>04.08.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>11.08.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>18.08.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>25.08.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>01.09.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>08.09.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>15.09.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>22.09.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>29.09.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>06.10.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>13.10.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n <tr >\n <td>20.10.2015<\/td>\n <td>18:00 - 19:30<\/td>\n <\/tr>\n \n <\/table>\n <\/div>\n <\/td>\n <\/tr>\n <tr>\n <td class=\"calendar-event-view-fields-key\">Tid<\/td>\n <td class=\"calendar-event-view-fields-value\">18:00 - 19:30<\/td>\n <\/tr>\n <tr>\n <td class=\"calendar-event-view-fields-key\">Sted<\/td>\n <td class=\"calendar-event-view-fields-value\">Fossum Klubbhus<\/td>\n <\/tr>\n <tr>\n <td class=\"calendar-event-view-fields-key\">Beskrivelse<\/td>\n <td class=\"calendar-event-view-fields-value\"><\/td>\n <\/tr>\n <tr>\n <\/tr>\n\n <\/table>\n<\/div>\n <div class=\"calendar-register-button-box\">\n <form name=\"backurl\" method=\"post\" action=\"\">\n <\/form>\n\n <\/div>\n <\/div>",title: "Trening for alle O-grupper tirsdager p\u00e5 Fossum"}); $('#navbar-pop').hide(); $("#navbar-pop-eventview [data-toggle]").on("click", function(e){ e.preventDefault(); var target = $(this).data("toggle"); $(target).slideToggle(); }); $('#navbar-pop-eventview a[data-eventviewpopup]').on("click", function(e) { e.preventDefault(); e.stopPropagation(); $.ajax($(this).attr("href")).done(function(){ WO.Calendar.Event.toggleShowHideOccurrencesButton(); }); });