mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-15 08:48:42 +00:00
Reduce js console logging
This commit is contained in:
parent
9cf5df977f
commit
954aa70704
|
|
@ -94,7 +94,6 @@
|
||||||
*/
|
*/
|
||||||
jsOMS.Auth.Auth.prototype.loginResult = function (xhr)
|
jsOMS.Auth.Auth.prototype.loginResult = function (xhr)
|
||||||
{
|
{
|
||||||
console.log(xhr);
|
|
||||||
location.reload();
|
location.reload();
|
||||||
};
|
};
|
||||||
}(window.jsOMS = window.jsOMS || {}));
|
}(window.jsOMS = window.jsOMS || {}));
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
// todo: create log;
|
// todo: create log;
|
||||||
this.result[0] = function ()
|
this.result[0] = function ()
|
||||||
{
|
{
|
||||||
console.log('invalid response');
|
//console.log('invalid response');
|
||||||
};
|
};
|
||||||
|
|
||||||
/** global: XMLHttpRequest */
|
/** global: XMLHttpRequest */
|
||||||
|
|
@ -363,7 +363,6 @@
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// todo: create handler for error returns
|
// todo: create handler for error returns
|
||||||
console.log(self.xhr);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,6 @@
|
||||||
|
|
||||||
if(hasSelector) {
|
if(hasSelector) {
|
||||||
this.app.eventManager.attach(e.id + 'childList', function(data) {
|
this.app.eventManager.attach(e.id + 'childList', function(data) {
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
const length = data.addedNodes.length;
|
const length = data.addedNodes.length;
|
||||||
|
|
||||||
for(let j = 0; j < length; j++) {
|
for(let j = 0; j < length; j++) {
|
||||||
|
|
@ -105,9 +103,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.app.eventManager.attach(e.id + 'attributes', function(data) {
|
this.app.eventManager.attach(e.id + 'attributes', function(data) {});
|
||||||
console.log(data);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.app.uiManager.getDOMObserver().observe(e, observeConfig);
|
this.app.uiManager.getDOMObserver().observe(e, observeConfig);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,6 @@
|
||||||
|
|
||||||
for (let k = 0; k < responseLength; k++) {
|
for (let k = 0; k < responseLength; k++) {
|
||||||
tempResponse = response.getByIndex(k);
|
tempResponse = response.getByIndex(k);
|
||||||
console.log(tempResponse);
|
|
||||||
|
|
||||||
let option = null,
|
let option = null,
|
||||||
data = tempResponse.getData(),
|
data = tempResponse.getData(),
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,6 @@
|
||||||
const element = document.getElementById(id),
|
const element = document.getElementById(id),
|
||||||
self = this;
|
self = this;
|
||||||
|
|
||||||
console.log(id);
|
|
||||||
|
|
||||||
if(!element) {
|
if(!element) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -82,38 +80,29 @@
|
||||||
self.dragging = this;
|
self.dragging = this;
|
||||||
e.dataTransfer.effectAllowed = 'move';
|
e.dataTransfer.effectAllowed = 'move';
|
||||||
e.dataTransfer.setData('text/html', this.innerHTML);
|
e.dataTransfer.setData('text/html', this.innerHTML);
|
||||||
|
|
||||||
console.log(self.dragging);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('drag start');
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
element.addEventListener('dragenter', function(e) {
|
element.addEventListener('dragenter', function(e) {
|
||||||
// todo: highlight
|
// todo: highlight
|
||||||
console.log('drag enter');
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
element.addEventListener('dragover', function(e) {
|
element.addEventListener('dragover', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
e.dataTransfer.dropEffect = 'move';
|
e.dataTransfer.dropEffect = 'move';
|
||||||
|
|
||||||
console.log('drag over');
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
element.addEventListener('dragleave', function(e) {
|
element.addEventListener('dragleave', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
// todo: don't highlight
|
// todo: don't highlight
|
||||||
console.log('drag leave');
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
element.addEventListener('dragend', function(e) {
|
element.addEventListener('dragend', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
// todo: reset all changes
|
// todo: reset all changes
|
||||||
console.log('drag end');
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
//element.addEventListener('drag', function(e) {});
|
//element.addEventListener('drag', function(e) {});
|
||||||
|
|
@ -130,7 +119,6 @@
|
||||||
|
|
||||||
// todo: add to now destination
|
// todo: add to now destination
|
||||||
// todo: remove from old destination
|
// todo: remove from old destination
|
||||||
console.log('drag drop');
|
|
||||||
|
|
||||||
self.dragging = null;
|
self.dragging = null;
|
||||||
}, false);
|
}, false);
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,7 @@
|
||||||
this.recognition.onresult = function(event) {
|
this.recognition.onresult = function(event) {
|
||||||
let result = jsOMS.trim(event.results[event.resultIndex][0].transcript);
|
let result = jsOMS.trim(event.results[event.resultIndex][0].transcript);
|
||||||
|
|
||||||
console.log('.' + result + '.');
|
|
||||||
|
|
||||||
if(self.commands.hasOwnProperty(result)) {
|
if(self.commands.hasOwnProperty(result)) {
|
||||||
console.log('found');
|
|
||||||
self.commands[result]();
|
self.commands[result]();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user