This commit is contained in:
rolux 2012-06-14 14:31:00 +02:00
parent a2add10902
commit 72ed28494d

View file

@ -12,6 +12,7 @@ Ox.InputGroup <f> InputGroup Object
@*/ @*/
Ox.InputGroup = function(options, self) { Ox.InputGroup = function(options, self) {
self = self || {}; self = self || {};
var that = Ox.Element({}, self) var that = Ox.Element({}, self)
.defaults({ .defaults({
@ -79,7 +80,6 @@ Ox.InputGroup = function(options, self) {
}); });
function change(data) { function change(data) {
//Ox.Log('Form', 'InputGroup change')
self.options.value = getValue(); self.options.value = getValue();
that.triggerEvent('change', { that.triggerEvent('change', {
value: self.options.value value: self.options.value
@ -109,7 +109,7 @@ Ox.InputGroup = function(options, self) {
return v.options('width'); return v.options('width');
})) + Ox.sum(self.options.separators.map(function(v) { })) + Ox.sum(self.options.separators.map(function(v) {
return v.width; return v.width;
}));// + 2; // fixme: why + 2? }));
} }
function setValue() { function setValue() {
@ -143,7 +143,6 @@ Ox.InputGroup = function(options, self) {
that.getInputById = function(id) { that.getInputById = function(id) {
var input = null; var input = null;
Ox.forEach(self.options.inputs, function(v, i) { Ox.forEach(self.options.inputs, function(v, i) {
//Ox.Log('Form', v, v.options('id'), id)
if (v.options('id') == self.options.id + Ox.toTitleCase(id)) { if (v.options('id') == self.options.id + Ox.toTitleCase(id)) {
input = v; input = v;
Ox.Break(); Ox.Break();