Use length to test Group emptiness
jQuery.isEmptyObject does not consider Group without records as empty. issue6800 review35651002
This commit is contained in:
1 parent
d832eb0b9a
commit
dfb48edd1d
1 file changed
+2
-3
+2
-3
@@ -753,9 +753,8 @@
|
||||
selected = selected || [];
|
||||
expanded = expanded || [];
|
||||
var update_expander = function() {
|
||||
if (jQuery.isEmptyObject(
|
||||
this.record.field_get_client(
|
||||
this.children_field))) {
|
||||
if (!this.record.field_get_client(
|
||||
this.children_field).length) {
|
||||
this.expander.css('visibility', 'hidden');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user