1
0
Fork 0
forked from 0x2620/oxjs

use Ox.Log

This commit is contained in:
j 2011-11-04 16:54:28 +01:00
commit dce2843303
50 changed files with 276 additions and 276 deletions

View file

@ -38,7 +38,7 @@ Ox.InputGroup = function(options, self) {
self.$separator = [];
self.options.separators.forEach(function(v, i) {
self.options.id == 'debug' && Ox.print('separator #' + i + ' ' + self.options.inputs[i].options('id') + ' ' + self.options.inputs[i].options('width'))
self.options.id == 'debug' && Ox.Log('Form', 'separator #' + i + ' ' + self.options.inputs[i].options('id') + ' ' + self.options.inputs[i].options('width'))
self.$separator[i] = Ox.Label({
textAlign: 'center',
title: v.title,
@ -71,7 +71,7 @@ Ox.InputGroup = function(options, self) {
});
function change(data) {
//Ox.print('InputGroup change')
//Ox.Log('Form', 'InputGroup change')
that.triggerEvent('change', {
value: self.options.inputs.map(function($input) {
return $input.value();
@ -108,7 +108,7 @@ Ox.InputGroup = function(options, self) {
}
function validate(data) {
//Ox.print('INPUTGROUP TRIGGER VALIDATE')
//Ox.Log('Form', 'INPUTGROUP TRIGGER VALIDATE')
that.triggerEvent('validate', data);
}
@ -116,7 +116,7 @@ Ox.InputGroup = function(options, self) {
that.getInputById = function(id) {
var input = null;
Ox.forEach(self.options.inputs, function(v, i) {
//Ox.print(v, v.options('id'), id)
//Ox.Log('Form', v, v.options('id'), id)
if (v.options('id') == self.options.id + Ox.toTitleCase(id)) {
input = v;
return false;