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
|
|
@ -231,7 +231,7 @@ Ox.Dialog = function(options, self) {
|
|||
}
|
||||
|
||||
function drag(event) {
|
||||
Ox.print(document.body.scrollTop, '...')
|
||||
Ox.Log('Window', document.body.scrollTop, '...')
|
||||
var left, top;
|
||||
if (!$(event.target).is('.OxButton')) {
|
||||
left = Ox.limit(
|
||||
|
|
@ -256,7 +256,7 @@ Ox.Dialog = function(options, self) {
|
|||
function getButtonById(id) {
|
||||
var ret = null;
|
||||
Ox.forEach(self.options.buttons, function(button) {
|
||||
//Ox.print(button.options(), button.options('id'))
|
||||
//Ox.Log('Window', button.options(), button.options('id'))
|
||||
if (button.options && button.options('id') == id) {
|
||||
ret = button;
|
||||
return false;
|
||||
|
|
@ -267,7 +267,7 @@ Ox.Dialog = function(options, self) {
|
|||
|
||||
function keypress(key) {
|
||||
var id = self.options.keys[key];
|
||||
Ox.print(id, getButtonById(id));
|
||||
Ox.Log('Window', id, getButtonById(id));
|
||||
id && getButtonById(id).$element.trigger('click');
|
||||
}
|
||||
|
||||
|
|
@ -620,7 +620,7 @@ Ox.Dialog = function(options, self) {
|
|||
self.options.minHeight = Math.round(self.options.minWidth / ratio);
|
||||
}
|
||||
}
|
||||
Ox.print('sMM', self, window.innerHeight, maxRatio)
|
||||
Ox.Log('Window', 'sMM', self, window.innerHeight, maxRatio)
|
||||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue