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

Commit 9b6d8e6

Browse files
committed
Fixed #1478 - backFocus option was not working
1 parent dbbf12f commit 9b6d8e6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dist/jquery.fancybox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==================================================
2-
// fancyBox v3.1.21
2+
// fancyBox v3.1.22
33
//
44
// Licensed GPLv3 for open source use
55
// or fancyBox Commercial License for commercial use
@@ -2482,7 +2482,7 @@
24822482
self.trigger( 'afterClose', e );
24832483

24842484
// Place back focus
2485-
if ( self.$lastFocus && !!!self.current.focusBack ) {
2485+
if ( self.$lastFocus && !!self.current.opts.backFocus ) {
24862486
self.$lastFocus.focus();
24872487
}
24882488

@@ -2629,7 +2629,7 @@
26292629

26302630
$.fancybox = {
26312631

2632-
version : "3.1.21",
2632+
version : "3.1.22",
26332633
defaults : defaults,
26342634

26352635

dist/jquery.fancybox.min.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@fancyapps/fancybox",
33
"description": "Touch enabled, responsive and fully customizable jQuery lightbox script",
4-
"version": "3.1.21",
4+
"version": "3.1.22",
55
"homepage": "http://fancyapps.com/fancybox/",
66
"main": "./dist/jquery.fancybox.min.js",
77
"author": "fancyApps",

src/js/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2472,7 +2472,7 @@
24722472
self.trigger( 'afterClose', e );
24732473

24742474
// Place back focus
2475-
if ( self.$lastFocus && !!!self.current.focusBack ) {
2475+
if ( self.$lastFocus && !!self.current.opts.backFocus ) {
24762476
self.$lastFocus.focus();
24772477
}
24782478

0 commit comments

Comments
 (0)