forked from 0x2620/oxjs
use Ox.Log
This commit is contained in:
parent
92d25b6776
commit
dce2843303
50 changed files with 276 additions and 276 deletions
|
|
@ -36,14 +36,14 @@ Ox.ArrayInput = function(options, self) {
|
|||
});
|
||||
|
||||
function addInput(i, value, focus) {
|
||||
Ox.print('add', i)
|
||||
Ox.Log('Form', 'add', i)
|
||||
self.$element.splice(i, 0, Ox.Element()
|
||||
.css({height: '16px', marginTop: self.options.label || i > 0 ? '8px' : 0})
|
||||
.data({index: i}));
|
||||
if (i == 0) {
|
||||
self.$element[i].appendTo(that);
|
||||
} else {
|
||||
Ox.print(i, self.$element)
|
||||
Ox.Log('Form', i, self.$element)
|
||||
self.$element[i].insertAfter(self.$element[i - 1]);
|
||||
}
|
||||
self.$input.splice(i, 0, Ox.Input({
|
||||
|
|
@ -99,7 +99,7 @@ Ox.ArrayInput = function(options, self) {
|
|||
}
|
||||
|
||||
function removeInput(i) {
|
||||
Ox.print('remove', i);
|
||||
Ox.Log('Form', 'remove', i);
|
||||
['input', 'removeButton', 'addButton', 'element'].forEach(function(element) {
|
||||
var key = '$' + element;
|
||||
self[key][i].removeElement();
|
||||
|
|
@ -133,7 +133,7 @@ Ox.ArrayInput = function(options, self) {
|
|||
|
||||
function updateIndices() {
|
||||
self.$element.forEach(function($element, i) {
|
||||
Ox.print(i, $element)
|
||||
Ox.Log('Form', i, $element)
|
||||
$element.data({index: i});
|
||||
});
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue