mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fixes
This commit is contained in:
parent
d2760c42f2
commit
306e51c09b
@ -474,10 +474,9 @@ Want something changed? We're {{ link_to('https://github.com/hillelcoren/invoice
|
|||||||
'&new_last_name=' + encodeURIComponent($('form.signUpForm #new_last_name').val()) +
|
'&new_last_name=' + encodeURIComponent($('form.signUpForm #new_last_name').val()) +
|
||||||
'&go_pro=' + $('#go_pro').val(),
|
'&go_pro=' + $('#go_pro').val(),
|
||||||
success: function(result) {
|
success: function(result) {
|
||||||
trackUrl('/signed_up');
|
|
||||||
if (result) {
|
if (result) {
|
||||||
localStorage.setItem('guest_key', '');
|
localStorage.setItem('guest_key', '');
|
||||||
trackUrl('/user/sign_up');
|
trackUrl('/signed_up');
|
||||||
NINJA.isRegistered = true;
|
NINJA.isRegistered = true;
|
||||||
/*
|
/*
|
||||||
$('#signUpButton').hide();
|
$('#signUpButton').hide();
|
||||||
@ -513,9 +512,8 @@ Want something changed? We're {{ link_to('https://github.com/hillelcoren/invoice
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showSignUp() {
|
function showSignUp() {
|
||||||
$('#signUpModal').modal('show');
|
$('#signUpModal').modal('show');
|
||||||
trackUrl('/view_sign_up');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Auth::check() && !Auth::user()->isPro())
|
@if (Auth::check() && !Auth::user()->isPro())
|
||||||
@ -586,6 +584,7 @@ Want something changed? We're {{ link_to('https://github.com/hillelcoren/invoice
|
|||||||
validateSignUp();
|
validateSignUp();
|
||||||
|
|
||||||
$('#signUpModal').on('shown.bs.modal', function () {
|
$('#signUpModal').on('shown.bs.modal', function () {
|
||||||
|
trackUrl('/view_sign_up');
|
||||||
$(['first_name','last_name','email','password']).each(function(i, field) {
|
$(['first_name','last_name','email','password']).each(function(i, field) {
|
||||||
var $input = $('form.signUpForm #new_'+field);
|
var $input = $('form.signUpForm #new_'+field);
|
||||||
if (!$input.val()) {
|
if (!$input.val()) {
|
||||||
|
@ -659,6 +659,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onDownloadClick() {
|
function onDownloadClick() {
|
||||||
|
trackUrl('/download_pdf');
|
||||||
var invoice = createInvoiceModel();
|
var invoice = createInvoiceModel();
|
||||||
var doc = generatePDF(invoice, true);
|
var doc = generatePDF(invoice, true);
|
||||||
doc.save('Invoice-' + $('#invoice_number').val() + '.pdf');
|
doc.save('Invoice-' + $('#invoice_number').val() + '.pdf');
|
||||||
@ -906,6 +907,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.showClientForm = function() {
|
self.showClientForm = function() {
|
||||||
|
trackUrl('/view_client_form');
|
||||||
self.clientBackup = ko.mapping.toJS(self.invoice().client);
|
self.clientBackup = ko.mapping.toJS(self.invoice().client);
|
||||||
|
|
||||||
$('#emailError').css( "display", "none" );
|
$('#emailError').css( "display", "none" );
|
||||||
@ -913,6 +915,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.clientFormComplete = function() {
|
self.clientFormComplete = function() {
|
||||||
|
trackUrl('/save_client_form');
|
||||||
|
|
||||||
var isValid = true;
|
var isValid = true;
|
||||||
$("input[name='email']").each(function(item, value) {
|
$("input[name='email']").each(function(item, value) {
|
||||||
|
@ -17,6 +17,10 @@ color: #333;
|
|||||||
border-bottom: 1px solid #dfe0e1;
|
border-bottom: 1px solid #dfe0e1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hidden-desktop {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.greenlink a { color:#36c157; }
|
.greenlink a { color:#36c157; }
|
||||||
.greenlink a:hover { color:#2e9e49; }
|
.greenlink a:hover { color:#2e9e49; }
|
||||||
.redlink a { color:#da4830; }
|
.redlink a { color:#da4830; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user