Skip to content

Releases: dimsemenov/Magnific-Popup

1.2.0

08 Jun 08:20
Compare
Choose a tag to compare

This update fixes jQuery deprecated functions and potential security vulnerabilities if you aren't fully sanitizing user input (for example, if your users can create HTML elements with attributes that contain non-sanitized HTML).

  • Updated functions that are deprecated by jQuery 3.7.1+
  • Added options allowHTMLInStatusIndicator, allowHTMLInTemplate that disable HTML within the loading indicator and fields like image title. Options are disabled by default (by default HTML is not allowed). If you want to make it work as before enable these:
$('.gallery').magnificPopup({
  allowHTMLInStatusIndicator: true,
  allowHTMLInTemplate: true,
  // ...
});

You can grab the latest version from dist/ directory https://github.com/dimsemenov/Magnific-Popup/tree/master/dist

1.1.0

20 Feb 09:15
Compare
Choose a tag to compare
  • Dropped built-in fast-click support in favor of modern touch-action property. If you still need it in browsers that have 300ms delay, use FastClick by FT Labs.
  • Dropped basic IE7 support (if you still need to support old IE, keep using the previous version).
  • Sanitized attributes with jQuery when replacing img element (#770 via @makkaq).
  • Added 'style' property to package.json (#816 via @jonscottclark).
  • Removed vendor prefixes for box-sizing and box-shadow (via @chicagoing).

1.0.1

30 Dec 10:19
Compare
Choose a tag to compare
  • New option autoFocusLast to on/off autofocusing after popup close (via @resetko).
  • Shift- and alt-click allows default browser behaviour if option midClick:true (via @Noitidart).
  • Changed × to × for XHTML compability (via @edelbluth).

1.0.0

12 Dec 09:34
Compare
Choose a tag to compare
  • Added Require.js/AMD/CommonJS support (thanks to @mpdude).
  • Popup now uses alt attribute from thumbnail that opens it (if present).
  • Prevent word wrap in "1 of X" counter (thanks to @peschee).
  • Minor fixes and improvements in site & documentation, see commit history for more info.

0.9.9

15 Nov 11:54
Compare
Choose a tag to compare
  • Popup instance object is now available even before the first $.fn.magnificPopup call.
  • Methods _onFocusIn and _setFocus are now public, to allow overriding.

0.9.8

26 Oct 10:04
Compare
Choose a tag to compare
  • Added figure and figcaption elements to image markup (#233, thanks to @pjackson28).
  • To avoid "jump" of content background, gap from right side (that "replaces" the scrollbar) is added with help of margin, instead of padding, (closes #125, thanks to @chodorowicz).
  • Function that checks if the clicked element should close popup or not is now public (so it can be overridden with your own logic).
  • Working on a new module: the exact copy of native fullscreen Android/iOS gallery, with touch/zoom/pan e.t.c., will publish branch soon (©Blizzard).

0.9.7

10 Oct 07:06
Compare
Choose a tag to compare
  • CSS: removed outline on buttons (thanks to @OriginalEXE).
  • Allow multiple string tokens to be passed in gallery variables like %curr% of %total% and %title% (#234, thanks to Petr Marek).
  • A few small changes to Grunt build, grunt-contrib-sass > grunt-sass. (thanks to @nschonni).

0.9.6

29 Sep 20:02
Compare
Choose a tag to compare
  • Fixed bug: options object that you pass to popup gets modified after the initialization (#217, #203).
  • Fixed bug: zoom module creates global variable (#226).
  • Fixed bug: gallery from AJAX popups stacks content if it's switched before loading has finished.
  • Indented and combined SCSS classes (thanks to @nschonni).
  • $.magnificPopup.close() now doesn't throw an exception if there's no instance (#221, thanks to @mjlescano).