SHOW:
|
|
- or go back to the newest paste.
| 1 | <span onMouseOver="show_agenda_details({{agenda.id}}, {{slot.id}});" onMouseOut="hide_agenda_details({{agenda.id}}, {{slot.id}});">
| |
| 2 | {% if attendee in agenda.meeting.attendees %}
| |
| 3 | <img class="icon" src="/media/img/attending.png" alt="Attending"> | |
| 4 | {% else %}
| |
| 5 | - | <img class="icon" src="/media/img/not_attending.png" alt="Not Attending" onclick="changeStatus('{% url summit.schedule.views.attend_meeting agenda.meeting.summit.name agenda.meeting.id %}', img_{{agenda.meeting_id}}) id="img_{{agenda.meeting_id}}">
|
| 5 | + | <img class="icon" src="/media/img/not_attending.png" alt="Not Attending" onclick="changeStatus('{% url summit.schedule.views.attend_meeting agenda.meeting.summit.name agenda.meeting.id %}', 'img_{{agenda.meeting_id}}') id="img_{{agenda.meeting_id}}">
|
| 6 | {% endif %}
| |
| 7 | ||
| 8 | ||
| 9 | code code code more code | |
| 10 | some more fun over here | |
| 11 | ||
| 12 | blah blah blah scripts | |
| 13 | ||
| 14 | <script> | |
| 15 | function changeStatus(attend_url, img_tag_id) | |
| 16 | {
| |
| 17 | - | $.post(attend_url, { participation: "ATTENDING" } , function(data){ document.getElementbyId(img_tag_id).setAttribute("src","/media/img/attending.png"); });
|
| 17 | + | $.post(attend_url, { participation: "ATTENDING" } , function(data){ document.getElementById(img_tag_id).setAttribute("src","/media/img/attending.png"); });
|
| 18 | } | |
| 19 | </script> |