From 306e51c09bec019032905c9ce30136f5fd2fd850 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 29 Jun 2014 12:39:08 +0300 Subject: [PATCH] Bug fixes --- app/views/header.blade.php | 7 +++---- app/views/invoices/edit.blade.php | 3 +++ public/css/style.css | 4 ++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/views/header.blade.php b/app/views/header.blade.php index 1cbb2ef892a6..85789321a686 100755 --- a/app/views/header.blade.php +++ b/app/views/header.blade.php @@ -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()) + '&go_pro=' + $('#go_pro').val(), success: function(result) { - trackUrl('/signed_up'); if (result) { localStorage.setItem('guest_key', ''); - trackUrl('/user/sign_up'); + trackUrl('/signed_up'); NINJA.isRegistered = true; /* $('#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'); - trackUrl('/view_sign_up'); } @if (Auth::check() && !Auth::user()->isPro()) @@ -586,6 +584,7 @@ Want something changed? We're {{ link_to('https://github.com/hillelcoren/invoice validateSignUp(); $('#signUpModal').on('shown.bs.modal', function () { + trackUrl('/view_sign_up'); $(['first_name','last_name','email','password']).each(function(i, field) { var $input = $('form.signUpForm #new_'+field); if (!$input.val()) { diff --git a/app/views/invoices/edit.blade.php b/app/views/invoices/edit.blade.php index 5139d9375ecf..f202239b244c 100755 --- a/app/views/invoices/edit.blade.php +++ b/app/views/invoices/edit.blade.php @@ -659,6 +659,7 @@ } function onDownloadClick() { + trackUrl('/download_pdf'); var invoice = createInvoiceModel(); var doc = generatePDF(invoice, true); doc.save('Invoice-' + $('#invoice_number').val() + '.pdf'); @@ -906,6 +907,7 @@ } self.showClientForm = function() { + trackUrl('/view_client_form'); self.clientBackup = ko.mapping.toJS(self.invoice().client); $('#emailError').css( "display", "none" ); @@ -913,6 +915,7 @@ } self.clientFormComplete = function() { + trackUrl('/save_client_form'); var isValid = true; $("input[name='email']").each(function(item, value) { diff --git a/public/css/style.css b/public/css/style.css index 7f06998b61db..7fc12c2e6b72 100755 --- a/public/css/style.css +++ b/public/css/style.css @@ -17,6 +17,10 @@ color: #333; border-bottom: 1px solid #dfe0e1; } +.hidden-desktop { + display: none !important; +} + .greenlink a { color:#36c157; } .greenlink a:hover { color:#2e9e49; } .redlink a { color:#da4830; }