|
@@ -18,12 +18,13 @@ var page = 1, |
|
@@ -18,12 +18,13 @@ var page = 1, |
18
|
var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()),
|
18
|
var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()),
|
19
|
$newCoupon = $('#new-coupon');
|
19
|
$newCoupon = $('#new-coupon');
|
20
|
|
20
|
|
|
|
21
|
+var winH = $(window).height();
|
|
|
22
|
+
|
21
|
// conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()),
|
23
|
// conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()),
|
22
|
|
24
|
|
23
|
function fixedLayOut() {
|
25
|
function fixedLayOut() {
|
24
|
- var $null = $('.null');
|
|
|
25
|
-
|
|
|
26
|
- var winH = $(window).height(),
|
26
|
+ var $null = $('.null'),
|
|
|
27
|
+ navH = $('.nav-title').height(),
|
27
|
nullH = $null.height();
|
28
|
nullH = $null.height();
|
28
|
|
29
|
|
29
|
if ($null.length === 0) {
|
30
|
if ($null.length === 0) {
|
|
@@ -31,7 +32,7 @@ function fixedLayOut() { |
|
@@ -31,7 +32,7 @@ function fixedLayOut() { |
31
|
}
|
32
|
}
|
32
|
|
33
|
|
33
|
$null.css({
|
34
|
$null.css({
|
34
|
- top: winH / 2 - nullH / 2
|
35
|
+ top: winH / 2 - nullH / 2 + navH
|
35
|
});
|
36
|
});
|
36
|
}
|
37
|
}
|
37
|
|
38
|
|