diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index afefb2759..3b713d750 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,11 @@ ## RELEASE NOTES +### Version 2.1.7 Nov 29, 2015 + +**Bug Fixes** + +-**Popup** - Adds `onUnplaceable` callback when element cannot be place in visible screen + ### Version 2.1.6 - Nov 6, 2015 **Bug Fixes** diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index 0fef95c83..01e99e883 100644 --- a/src/definitions/modules/popup.js +++ b/src/definitions/modules/popup.js @@ -841,6 +841,7 @@ $.fn.popup = function(parameters) { module.remove.attempts(); module.remove.loading(); module.reset(); + settings.onUnplaceable.call(element); return false; } } @@ -1244,6 +1245,9 @@ $.fn.popup.settings = { // callback before hide animation onHide : function(){}, + // callback when popup cannot be positioned in visible screen + onUnplaceable: function(){}, + // callback after hide animation onHidden : function(){},