2012-04-25 22:48:27 +02:00
|
|
|
/**
|
|
|
|
* OpenSlides participants functions
|
|
|
|
*
|
|
|
|
* :copyright: 2011, 2012 by OpenSlides team, see AUTHORS.
|
|
|
|
* :license: GNU GPL, see LICENSE for more details.
|
|
|
|
*/
|
|
|
|
|
2012-04-02 08:35:10 +02:00
|
|
|
$(function() {
|
|
|
|
$('.status_link').click(function(event) {
|
|
|
|
event.preventDefault();
|
|
|
|
link = $(this);
|
|
|
|
$.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: link.attr('href'),
|
|
|
|
dataType: 'json',
|
|
|
|
success: function(data) {
|
|
|
|
if (data.active) {
|
2012-05-19 19:22:20 +02:00
|
|
|
link.addClass('active');
|
2012-04-02 08:35:10 +02:00
|
|
|
} else {
|
2012-05-19 19:22:20 +02:00
|
|
|
link.removeClass('active');
|
2012-04-02 08:35:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|