deleting/commenting console.log in code

This commit is contained in:
Dante
2015-03-30 16:32:28 -04:00
parent 87f728a947
commit cdfcb13a04
2 changed files with 9 additions and 11 deletions

View File

@@ -731,7 +731,7 @@
};
function hideScrollIfAllDivsAreVisible(){
console.log('ocultos ' + $('.hideme').length);
//For Debug: console.log('hidden ' + $('.hideme').length);
if ($('.hideme').length <= 0) {
$('#theImg').hide();
}
@@ -1161,7 +1161,7 @@
$('#indicatorsDataGridStack').gridstack();
var gridIndicators = $('#indicatorsDataGridStack').data('gridstack');
gridIndicators.remove_all();
console.log(dateActualEnd);
//For Debug: console.log(dateActualEnd);
//calling backend
proxy.dashboardIndicators(actualDashId, dateActual, dateActualEnd,
function(widgetsObj) {
@@ -1178,4 +1178,4 @@ $(function () {
vertical_margin: 12
};
$('.grid-stack').gridstack(options);
});
});

View File

@@ -396,11 +396,9 @@ DashboardProxy.prototype.userTasksData = function(processId, monthCompare, yearC
}
DashboardProxy.prototype.getPositionIndicator = function(callBack) {
console.log("GET");
this.getJson('dashboard/config', function (r) {
var graphData = [];
$.each(r, function(index, originalObject) {
console.log(originalObject);
var map = {
"widgetId" : originalObject.widgetId,
"x" : originalObject.x,
@@ -436,8 +434,8 @@ DashboardProxy.prototype.setPositionIndicator = function(data, callBack) {
DashboardProxy.prototype.getJson = function (endPoint, callBack) {
var that = this;
var callUrl = this.baseUrl + endPoint
console.log('Llamando:');
console.log(callUrl)
//For Debug: console.log('Llamando:');
//For Debug: console.log(callUrl)
$.ajax({
url: callUrl,
type: 'GET',
@@ -466,14 +464,14 @@ DashboardProxy.prototype.postJson = function (endPoint, data, callBack) {
callBack(response);
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(textStatus, errorThrown);
throw new Error(textStatus);
},
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Bearer ' + that.oauthToken);
xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
}
}).fail(function () {
console.log('Fail server');
throw new Error('Fail server');
});
};
@@ -490,13 +488,13 @@ DashboardProxy.prototype.putJson = function (endPoint, data, callBack) {
callBack(response);
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(textStatus, errorThrown);
throw new Error(textStatus);
},
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Bearer ' + that.oauthToken);
xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
}
}).fail(function () {
console.log('Fail server');
throw new Error('Fail server');
});
};