deleting/commenting console.log in code
This commit is contained in:
@@ -731,7 +731,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
function hideScrollIfAllDivsAreVisible(){
|
function hideScrollIfAllDivsAreVisible(){
|
||||||
console.log('ocultos ' + $('.hideme').length);
|
//For Debug: console.log('hidden ' + $('.hideme').length);
|
||||||
if ($('.hideme').length <= 0) {
|
if ($('.hideme').length <= 0) {
|
||||||
$('#theImg').hide();
|
$('#theImg').hide();
|
||||||
}
|
}
|
||||||
@@ -1161,7 +1161,7 @@
|
|||||||
$('#indicatorsDataGridStack').gridstack();
|
$('#indicatorsDataGridStack').gridstack();
|
||||||
var gridIndicators = $('#indicatorsDataGridStack').data('gridstack');
|
var gridIndicators = $('#indicatorsDataGridStack').data('gridstack');
|
||||||
gridIndicators.remove_all();
|
gridIndicators.remove_all();
|
||||||
console.log(dateActualEnd);
|
//For Debug: console.log(dateActualEnd);
|
||||||
//calling backend
|
//calling backend
|
||||||
proxy.dashboardIndicators(actualDashId, dateActual, dateActualEnd,
|
proxy.dashboardIndicators(actualDashId, dateActual, dateActualEnd,
|
||||||
function(widgetsObj) {
|
function(widgetsObj) {
|
||||||
|
|||||||
@@ -396,11 +396,9 @@ DashboardProxy.prototype.userTasksData = function(processId, monthCompare, yearC
|
|||||||
}
|
}
|
||||||
|
|
||||||
DashboardProxy.prototype.getPositionIndicator = function(callBack) {
|
DashboardProxy.prototype.getPositionIndicator = function(callBack) {
|
||||||
console.log("GET");
|
|
||||||
this.getJson('dashboard/config', function (r) {
|
this.getJson('dashboard/config', function (r) {
|
||||||
var graphData = [];
|
var graphData = [];
|
||||||
$.each(r, function(index, originalObject) {
|
$.each(r, function(index, originalObject) {
|
||||||
console.log(originalObject);
|
|
||||||
var map = {
|
var map = {
|
||||||
"widgetId" : originalObject.widgetId,
|
"widgetId" : originalObject.widgetId,
|
||||||
"x" : originalObject.x,
|
"x" : originalObject.x,
|
||||||
@@ -436,8 +434,8 @@ DashboardProxy.prototype.setPositionIndicator = function(data, callBack) {
|
|||||||
DashboardProxy.prototype.getJson = function (endPoint, callBack) {
|
DashboardProxy.prototype.getJson = function (endPoint, callBack) {
|
||||||
var that = this;
|
var that = this;
|
||||||
var callUrl = this.baseUrl + endPoint
|
var callUrl = this.baseUrl + endPoint
|
||||||
console.log('Llamando:');
|
//For Debug: console.log('Llamando:');
|
||||||
console.log(callUrl)
|
//For Debug: console.log(callUrl)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: callUrl,
|
url: callUrl,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
@@ -466,14 +464,14 @@ DashboardProxy.prototype.postJson = function (endPoint, data, callBack) {
|
|||||||
callBack(response);
|
callBack(response);
|
||||||
},
|
},
|
||||||
error: function(jqXHR, textStatus, errorThrown) {
|
error: function(jqXHR, textStatus, errorThrown) {
|
||||||
console.log(textStatus, errorThrown);
|
throw new Error(textStatus);
|
||||||
},
|
},
|
||||||
beforeSend: function (xhr) {
|
beforeSend: function (xhr) {
|
||||||
xhr.setRequestHeader('Authorization', 'Bearer ' + that.oauthToken);
|
xhr.setRequestHeader('Authorization', 'Bearer ' + that.oauthToken);
|
||||||
xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
|
xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
|
||||||
}
|
}
|
||||||
}).fail(function () {
|
}).fail(function () {
|
||||||
console.log('Fail server');
|
throw new Error('Fail server');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -490,13 +488,13 @@ DashboardProxy.prototype.putJson = function (endPoint, data, callBack) {
|
|||||||
callBack(response);
|
callBack(response);
|
||||||
},
|
},
|
||||||
error: function(jqXHR, textStatus, errorThrown) {
|
error: function(jqXHR, textStatus, errorThrown) {
|
||||||
console.log(textStatus, errorThrown);
|
throw new Error(textStatus);
|
||||||
},
|
},
|
||||||
beforeSend: function (xhr) {
|
beforeSend: function (xhr) {
|
||||||
xhr.setRequestHeader('Authorization', 'Bearer ' + that.oauthToken);
|
xhr.setRequestHeader('Authorization', 'Bearer ' + that.oauthToken);
|
||||||
xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
|
xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
|
||||||
}
|
}
|
||||||
}).fail(function () {
|
}).fail(function () {
|
||||||
console.log('Fail server');
|
throw new Error('Fail server');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user