Skip to content

Commit 32fe528

Browse files
committed
Upgraded load message + jQuery 1.10.2 + new contributor
1 parent edb463d commit 32fe528

File tree

6 files changed

+30
-19
lines changed

6 files changed

+30
-19
lines changed

css/style.css

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
width: 100%;
33
margin: 20px auto;
44
border: 14px solid #ddd;
5+
position: relative;
56
-webkit-border-radius: 6px;
67
-moz-border-radius: 6px;
78
border-radius: 6px;
@@ -394,21 +395,28 @@
394395
}
395396

396397
.fn-gantt-loader {
397-
background-image: url(../img/loader_bg.png);
398+
position: absolute;
399+
width: 100%;
400+
height: 100%;
401+
left: 0;
402+
top: 0;
403+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bf000000', endColorstr='#bf000000',GradientType=0 );
404+
background: rgba(0,0,0,0.75);
398405
z-index: 30;
399406
}
400-
401-
.fn-gantt-loader-spinner {
402-
width: 100px;
403-
height: 20px;
407+
.fn-gantt-loader-spinner span {
404408
position: absolute;
405-
margin-left: 50%;
406-
margin-top: 50%;
409+
margin: auto;
410+
top: 0;
411+
right: 0;
412+
bottom: 0;
413+
left: 0;
414+
width: 100%;
407415
text-align: center;
408-
}
409-
.fn-gantt-loader-spinner span {
416+
height: 1em;
417+
line-height: 1em;
410418
color: #fff;
411-
font-size: 12px;
419+
font-size: 1em;
412420
font-weight: bold;
413421
}
414422

img/loader_bg.png

-21.8 KB
Binary file not shown.

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ <h2>Contributors</h2>
5252
<li>
5353
<strong><a href="mailto:leo.pfeifenberger@googlemail.com" target="_blank">Leo Pfeifenberger</a></strong> made <em>major</em> performance updates as well as adding requested features such as click events, state persisting via cookies and scrollToToday on load functionality.
5454
</li>
55+
<li>
56+
<strong><a href="mailto:grzegorz.russek@gmail.com" target="_blank">Grzegorz Russek</a></strong> helped fix the White Whale of a bug that prevented the hour view rendering correctly. Nice one.
57+
</li>
5558
</ul>
5659

5760
<h2>

js/jquery.fn.gantt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,11 +1419,11 @@
14191419
var eh = $(element).outerHeight();
14201420

14211421
if (!element.loader) {
1422-
element.loader = $('<div class="fn-gantt-loader" style="position: absolute; top: ' + eo.top + 'px; left: ' + eo.left + 'px; width: ' + ew + 'px; height: ' + eh + 'px;">'
1422+
element.loader = $('<div class="fn-gantt-loader">'
14231423
+ '<div class="fn-gantt-loader-spinner"><span>' + settings.waitText + '</span></div></div>');
14241424
}
1425-
$("body").append(element.loader);
1426-
setTimeout(fn, 100);
1425+
$(element).append(element.loader);
1426+
setTimeout(fn, 500);
14271427

14281428
} else {
14291429
if (element.loader) {

js/jquery.fn.gantt.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)