[FIX] indentation of terminal groups in group_by_no_leaf
bzr revid: xmo@openerp.com-20111213153931-vdm0lo1murvz3hjr
This commit is contained in:
parent
5e451bd3a3
commit
b6a0a7b886
|
@ -1166,16 +1166,14 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
$group_column.html(row_data[group_column.id].value);
|
$group_column.html(row_data[group_column.id].value);
|
||||||
}
|
}
|
||||||
if (!group.length) {
|
if (group.length && group.openable) {
|
||||||
|
// Make openable if not terminal group & group_by_no_leaf
|
||||||
|
$group_column.prepend('<span class="ui-icon ui-icon-triangle-1-e" style="float: left;">');
|
||||||
|
} else {
|
||||||
// Kinda-ugly hack: jquery-ui has no "empty" icon, so set
|
// Kinda-ugly hack: jquery-ui has no "empty" icon, so set
|
||||||
// wonky background position to ensure nothing is displayed
|
// wonky background position to ensure nothing is displayed
|
||||||
// there but the rest of the behavior is ui-icon's
|
// there but the rest of the behavior is ui-icon's
|
||||||
$group_column.prepend(
|
$group_column.prepend('<span class="ui-icon" style="float: left; background-position: 150px 150px">');
|
||||||
'<span class="ui-icon" style="float: left; background-position: 150px 150px">');
|
|
||||||
} else if (group.openable) {
|
|
||||||
// Make openable if not terminal group & group_by_no_leaf
|
|
||||||
$group_column
|
|
||||||
.prepend('<span class="ui-icon ui-icon-triangle-1-e" style="float: left;">');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.indent($group_column, group.level);
|
self.indent($group_column, group.level);
|
||||||
|
|
Loading…
Reference in New Issue