mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Show new client form on click
This commit is contained in:
parent
f1d2444cc9
commit
b6092efb41
@ -13,9 +13,12 @@
|
||||
|
||||
App::before(function($request)
|
||||
{
|
||||
$count = Session::get(SESSION_COUNTER, 0);
|
||||
Session::put(SESSION_COUNTER, ++$count);
|
||||
|
||||
if (Auth::check())
|
||||
{
|
||||
$count = Session::get(SESSION_COUNTER, 0);
|
||||
Session::put(SESSION_COUNTER, ++$count);
|
||||
}
|
||||
|
||||
if (App::environment() == ENV_PRODUCTION)
|
||||
{
|
||||
if (!Request::secure())
|
||||
|
@ -127,6 +127,7 @@ class User extends ConfideUser implements UserInterface, RemindableInterface
|
||||
}
|
||||
|
||||
$count = self::getRequestsCount();
|
||||
|
||||
if ($count == 1 || $count % 5 == 0)
|
||||
{
|
||||
if (!Utils::isRegistered())
|
||||
|
@ -496,7 +496,14 @@
|
||||
model.invoice().client().country = false;
|
||||
}
|
||||
refreshPDF();
|
||||
}); //.trigger('change');
|
||||
});
|
||||
|
||||
// If no clients exists show the client form when clicking on the client select input
|
||||
if (clients.length === 0) {
|
||||
$('.client_select input.form-control').on('click', function() {
|
||||
model.showClientForm();
|
||||
});
|
||||
}
|
||||
|
||||
$('#terms, #public_notes, #invoice_number, #invoice_date, #due_date, #po_number, #discount, #currency_id, #invoice_design_id, #recurring').change(function() {
|
||||
setTimeout(function() {
|
||||
|
@ -57,7 +57,7 @@
|
||||
<a href="http://www.linkedin.com/profile/view?id=105143214" target="_blank"><img src="images/linkedin.svg" alt=""></a>
|
||||
<a href="http://hillelcoren.com/" target="_blank"><img src="images/website.svg" alt="Website"></a>
|
||||
</p>
|
||||
<p>Hillel has been developing enterprise applications for 15 years. His open-source <a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1721530" target="_blank">AutoComplete</a> component has been used by thousands of developers around the world.</p>
|
||||
<p>Hillel has been developing enterprise applications for 15 years. His open-source <a href="http://hillelcoren.com/flex-autocomplete/" target="_blank">AutoComplete</a> component has been used by thousands of developers around the world.</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="img-team">
|
||||
|
@ -1537,7 +1537,6 @@ function displayInvoiceHeader(doc, invoice, layout) {
|
||||
{
|
||||
doc.text(taxX, layout.tableTop, invoiceLabels.tax);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function displayInvoiceItems(doc, invoice, layout) {
|
||||
|
Loading…
Reference in New Issue
Block a user