This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-04-29 15:39:28 +00:00
|
|
|
$(document).on('click', '.list-remove', function(){
|
2012-08-13 16:59:01 +00:00
|
|
|
var a = [];
|
|
|
|
$('.checkbox_in_list').each(function(){
|
|
|
|
if (this.checked) a.push("ids[]=" + this.value);
|
|
|
|
});
|
|
|
|
var url = $(this).attr('rel');
|
|
|
|
if (url.indexOf('?') > -1){
|
|
|
|
$.getScript(url + '&' + a.join('&'));
|
|
|
|
}else{
|
|
|
|
$.getScript(url + '?' + a.join('&'));
|
|
|
|
}
|
2012-04-29 15:39:28 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$(document).on('click', '#check_all', function(){
|
|
|
|
$('.checkbox_in_list').attr("checked", this.checked);
|
|
|
|
});
|