[price_list] [minor] move header of new grid to right if currency
This commit is contained in:
parent
4233ae2258
commit
67a9ea6800
@ -93,11 +93,16 @@ wn.ui.form.TableGrid = Class.extend({
|
||||
|
||||
// Make other headers with label as heading
|
||||
$.each(this.fields, function(i, obj) {
|
||||
if (obj.in_list_view===1)
|
||||
var th = document.createElement("th");
|
||||
var th = document.createElement("th");
|
||||
|
||||
// If currency then move header to right
|
||||
if (obj.fieldtype == "Currency")
|
||||
$(th).attr("style", "vertical-align:middle; text-align:right;");
|
||||
else
|
||||
$(th).attr("style", "vertical-align:middle");
|
||||
$(th).html(obj.label);
|
||||
$(th).appendTo(row);
|
||||
|
||||
$(th).html(obj.label);
|
||||
$(th).appendTo(row);
|
||||
});
|
||||
|
||||
return header;
|
||||
|
Loading…
x
Reference in New Issue
Block a user