Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 1f9f8c5

Browse files
committed
Merge pull request #565 from Iszak/patch-1
Allow configuration of loading HTML
2 parents 1546099 + f023c36 commit 1f9f8c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/jquery.fancybox.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@
143143
error : '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',
144144
closeBtn : '<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',
145145
next : '<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
146-
prev : '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'
146+
prev : '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',
147+
loading : '<div id="fancybox-loading"><div></div></div>'
147148
},
148149

149150
// Properties for each animation type
@@ -614,7 +615,7 @@
614615

615616
F.hideLoading();
616617

617-
el = $('<div id="fancybox-loading"><div></div></div>').click(F.cancel).appendTo('body');
618+
el = $(F.opts.tpl.loading).click(F.cancel).appendTo('body');
618619

619620
// If user will press the escape-button, the request will be canceled
620621
D.bind('keydown.loading', function(e) {

0 commit comments

Comments
 (0)