Accept string without suffix as fixedWidth.

Fixes infolog defaults missing when changing details/no details
This commit is contained in:
Nathan Gray 2014-09-18 15:16:00 +00:00
parent 896ce29c1d
commit 066f0b5c85

View File

@ -119,6 +119,10 @@ var et2_dataview_column = ClassWithAttributes.extend({
{ {
this.fixedWidth = parseInt(w.substr(0, w.length - 2)); this.fixedWidth = parseInt(w.substr(0, w.length - 2));
} }
else if (typeof w == 'string' && !isNaN(w))
{
this.fixedWidth = parseInt(w);
}
}, },
set_visibility: function(_value) { set_visibility: function(_value) {