Browse Source

#3388 adds unplaceable callback, fixes docs

search-selection
jlukic 9 years ago
parent
commit
99b3228a95
2 changed files with 10 additions and 0 deletions
  1. 6
      RELEASE-NOTES.md
  2. 4
      src/definitions/modules/popup.js

6
RELEASE-NOTES.md

@ -1,5 +1,11 @@
## RELEASE NOTES ## 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 ### Version 2.1.6 - Nov 6, 2015
**Bug Fixes** **Bug Fixes**

4
src/definitions/modules/popup.js

@ -841,6 +841,7 @@ $.fn.popup = function(parameters) {
module.remove.attempts(); module.remove.attempts();
module.remove.loading(); module.remove.loading();
module.reset(); module.reset();
settings.onUnplaceable.call(element);
return false; return false;
} }
} }
@ -1244,6 +1245,9 @@ $.fn.popup.settings = {
// callback before hide animation // callback before hide animation
onHide : function(){}, onHide : function(){},
// callback when popup cannot be positioned in visible screen
onUnplaceable: function(){},
// callback after hide animation // callback after hide animation
onHidden : function(){}, onHidden : function(){},

Loading…
Cancel
Save