diff --git a/app/views/header.blade.php b/app/views/header.blade.php
index c3ec4a3d24..76f0215399 100755
--- a/app/views/header.blade.php
+++ b/app/views/header.blade.php
@@ -217,7 +217,7 @@
{{ Former::text('invoice_date')->data_bind("datePicker: invoice_date, valueUpdate: 'afterkeydown'")
- ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
+ ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
{{ Former::text('due_date')->data_bind("datePicker: due_date, valueUpdate: 'afterkeydown'")
- ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
+ ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
{{ Former::select('frequency_id')->label('How often')->options($frequencies)->data_bind("value: frequency_id") }}
{{ Former::text('start_date')->data_bind("datePicker: start_date, valueUpdate: 'afterkeydown'")
- ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
+ ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
{{ Former::text('end_date')->data_bind("datePicker: end_date, valueUpdate: 'afterkeydown'")
- ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
+ ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
@if ($invoice && $invoice->recurring_invoice_id)
@@ -138,7 +138,7 @@
|
-
+ |
|
@@ -176,9 +176,9 @@
|
|
|
- Tax |
+ Tax |
|
- |
+ |
|
@@ -579,6 +579,10 @@
return invoice;
}
+ function toggleDatePicker(field) {
+ $('#'+field).datepicker('show');
+ }
+
/*
function refreshPDF() {
setTimeout(function() {
@@ -589,13 +593,15 @@
var isRefreshing = false;
var needsRefresh = false;
- function refreshPDF() {
+ function getPDFString() {
var invoice = createInvoiceModel();
var doc = generatePDF(invoice);
if (!doc) return;
- var string = doc.output('datauristring');
-
+ return doc.output('datauristring');
+ }
+ function refreshPDF() {
if (isFirefox || (isChrome && !isChromium)) {
+ var string = getPDFString();
$('#theFrame').attr('src', string).show();
} else {
if (isRefreshing) {
@@ -603,7 +609,7 @@
return;
}
isRefreshing = true;
-
+ var string = getPDFString();
var pdfAsArray = convertDataURIToBinary(string);
PDFJS.getDocument(pdfAsArray).then(function getPdfHelloWorld(pdf) {
diff --git a/public/css/style.css b/public/css/style.css
index 5ffecc1a31..0be98f5926 100755
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -60,7 +60,7 @@ min-height: 40px;
table.dataTable { border-radius: 3px; border-collapse: collapse;
/*border-spacing: 0;*/}
table.dataTable thead > tr > th, table.invoice-table thead > tr > th {
- background: #e37329 !important;
+ background-color: #e37329 !important;
color:#fff;
}
th:first-child {
@@ -223,7 +223,7 @@ margin-left: 10px !important;
/*new*/
div {
- word-break: break-word;
+ word-break: break-all;
}
div.required > label {
diff --git a/public/js/script.js b/public/js/script.js
index 5521a5367f..3d4bae51d2 100644
--- a/public/js/script.js
+++ b/public/js/script.js
@@ -625,7 +625,6 @@ $.fn.datepicker.defaults.todayHighlight = true;
//====================================================================================================================
function GetPdf(invoice,checkMath,report_id){
-
var layout = {
accountTop: 30,
marginLeft: 50,
@@ -1534,7 +1533,7 @@ function displayInvoiceItems(doc, invoice, layout) {
for (var i=0; i