[minor] [fix] [listing] Select All based checking using prop function of jquery 1.9.1, instead of attr as per http://jquery.com/upgrade-guide/1.9/#attr-versus-prop-
This commit is contained in:
parent
524c1d05a6
commit
882e4e7189
1 changed files with 2 additions and 2 deletions
|
|
@ -233,8 +233,8 @@ wn.views.DocListView = wn.ui.Listing.extend({
|
|||
if(this.can_delete || this.listview.settings.selectable) {
|
||||
this.add_button(wn._('Delete'), function() { me.delete_items(); }, 'icon-remove');
|
||||
this.add_button(wn._('Select All'), function() {
|
||||
var checks = me.$page.find('.list-delete');
|
||||
checks.attr('checked', $(checks.get(0)).attr('checked') ? false : "checked");
|
||||
me.$page.find('.list-delete').prop("checked",
|
||||
me.$page.find('.list-delete:checked').length ? false : true);
|
||||
}, 'icon-ok');
|
||||
}
|
||||
if(in_list(user_roles, "System Manager")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue