Commit b2f012e4 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update Table.js to fix unwanted space

parent a56f03d6
......@@ -259,20 +259,20 @@ Ext.define('Dbui.form.field.Table', {
* Supersede the mixin method to initialize the table with empty data.
*
*/
reset: function () {
reset: function () {
"use strict";
var me = this,
oriVal = me.originalValue;
"use strict";
var me = this,
oriVal = me.originalValue;
// check that original value is defined
if (!(Ext.isArray(oriVal) && oriVal.length === me.numColumns)) {
me.originalValue = me.initData();
}
// check that original value is defined
if (!(Ext.isArray(oriVal) && oriVal.length === me.numColumns)) {
me.originalValue = me.initData();
}
// rest of the processing by the mixing Field
me.mixins.field.reset.call(me, arguments);
},
// rest of the processing by the mixing Field
me.mixins.field.reset.call(me, arguments);
},
/**
* Set the value for the table.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment