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