1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Removing debug messages

This commit is contained in:
Hillel Coren 2014-04-14 15:16:32 +03:00
parent 45ed680c77
commit 4d1df9bdc3
2 changed files with 1 additions and 11 deletions

View File

@ -676,7 +676,6 @@
}
function refreshPDF() {
console.log('refreshPDF');
if ({{ Auth::user()->force_pdfjs ? 'false' : 'true' }} && (isFirefox || (isChrome && !isChromium))) {
var string = getPDFString();
if (!string) return;

View File

@ -108,16 +108,9 @@ function GetReportTemplate4(doc, invoice, layout, checkMath) {
var invoiceOld;
function generatePDF(invoice, checkMath) {
console.log('generatePDF: %s', (JSON.stringify(invoice) == invoiceOld));
//console.log(JSON.stringify(invoice));
//console.log(invoiceOld);
invoice = calculateAmounts(invoice);
invoice = calculateAmounts(invoice);
var a = copyInvoice(invoice);
var b = copyInvoice(invoiceOld);
console.log(JSON.stringify(a));
console.log(JSON.stringify(b));
if (_.isEqual(a, b)) {
return;
}
@ -130,9 +123,7 @@ function generatePDF(invoice, checkMath) {
function copyInvoice(orig) {
if (!orig) return false;
var copy = JSON.stringify(orig);
//console.log(copy);
var copy = JSON.parse(copy);
//console.log(copy);
return copy;
}