Fix js for ie in list
This commit is contained in:
1 parent
53c5f6a3b9
commit
96fd89cca3
5 files changed
+23
-21
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<%#= encoding: utf-8 %>
|
||||
$(document).on('click', '.list-remove', function(){
|
||||
if(confirm("<%= I18n.t('sure?') %>")){
|
||||
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('&'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '#check_all', function(){
|
||||
$('.checkbox_in_list').attr("checked", this.checked);
|
||||
});
|
||||
Reference in new issue
Block a user