[price_list] [minor] move header of new grid to right if currency

This commit is contained in:
Akhilesh Darjee 2013-09-30 19:05:36 +05:30
parent 4233ae2258
commit 67a9ea6800

View File

@ -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;