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
c4665f84f0
commit
3bbb156124
@ -456,7 +456,7 @@
|
|||||||
if (isStorageSupported()) {
|
if (isStorageSupported()) {
|
||||||
@if (Auth::check() && !Auth::user()->registered)
|
@if (Auth::check() && !Auth::user()->registered)
|
||||||
localStorage.setItem('guest_key', '{{ Auth::user()->password }}');
|
localStorage.setItem('guest_key', '{{ Auth::user()->password }}');
|
||||||
@endif
|
@endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (!Auth::check() || !Auth::user()->registered)
|
@if (!Auth::check() || !Auth::user()->registered)
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
<div class="col-md-3 center-block">
|
<div class="col-md-3 center-block">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<div class="cta">
|
<div class="cta">
|
||||||
<h2 onclick="getStarted()">Invoice Now <span>+</span></h2>
|
<h2 onclick="return getStarted()">Invoice Now <span>+</span></h2>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,18 +53,6 @@ var contactForm = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function isStorageSupported() {
|
|
||||||
try {
|
|
||||||
return 'localStorage' in window && window['localStorage'] !== null;
|
|
||||||
} catch (e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function getStarted() {
|
|
||||||
$('#startForm').submit();
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="hero4" data-speed="2" data-type="background">
|
<section class="hero4" data-speed="2" data-type="background">
|
||||||
@ -139,7 +127,7 @@ function getStarted() {
|
|||||||
<div class="col-md-3 center-block">
|
<div class="col-md-3 center-block">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<div class="cta">
|
<div class="cta">
|
||||||
<h2 onclick="getStarted()">Invoice Now <span>+</span></h2>
|
<h2 onclick="return getStarted()">Invoice Now <span>+</span></h2>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,22 +27,31 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
if (isStorageSupported()) {
|
if (isStorageSupported()) {
|
||||||
$('[name="guest_key"]').val(localStorage.getItem('guest_key'));
|
$('[name="guest_key"]').val(localStorage.getItem('guest_key'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function isStorageSupported() {
|
function isStorageSupported() {
|
||||||
try {
|
if ('localStorage' in window && window['localStorage'] !== null) {
|
||||||
return 'localStorage' in window && window['localStorage'] !== null;
|
var storage = window.localStorage;
|
||||||
} catch (e) {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
var testKey = 'test';
|
||||||
|
try {
|
||||||
|
storage.setItem(testKey, '1');
|
||||||
|
storage.removeItem(testKey);
|
||||||
|
return true;
|
||||||
|
} catch (error) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getStarted() {
|
function getStarted() {
|
||||||
$('#startForm').submit();
|
$('#startForm').submit();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<div class="col-md-3 center-block">
|
<div class="col-md-3 center-block">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<div class="cta">
|
<div class="cta">
|
||||||
<h2 id="startButton" onclick="getStarted()">Invoice Now <span>+</span></h2>
|
<h2 id="startButton" onclick="return getStarted()">Invoice Now <span>+</span></h2>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -102,7 +102,7 @@
|
|||||||
<div class="col-md-3 center-block">
|
<div class="col-md-3 center-block">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<div class="cta">
|
<div class="cta">
|
||||||
<h2 onclick="getStarted()">Invoice Now <span>+</span></h2>
|
<h2 onclick="return getStarted()">Invoice Now <span>+</span></h2>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -793,8 +793,6 @@ function GetReportTemplate1(doc, invoice, layout, checkMath)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function GetReportTemplate2(doc, invoice, layout, checkMath)
|
function GetReportTemplate2(doc, invoice, layout, checkMath)
|
||||||
{
|
{
|
||||||
var GlobalY=0;//Y position of line at current page
|
var GlobalY=0;//Y position of line at current page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user