Browse Source

Fix issue with popup removal

pull/2034/head
jlukic 10 years ago
parent
commit
1ab71653ee
2 changed files with 4 additions and 0 deletions
  1. 1
      RELEASE-NOTES.md
  2. 3
      src/definitions/modules/popup.js

1
RELEASE-NOTES.md

@ -71,6 +71,7 @@
- **Modal** - `scrollable modal` now correctly adds padding below modal
- **Modal** - Modal with `detachable: false` inside `ui sidebar` `pusher` element will now show correctly
- **Popup** - Fixes issue with `min-width` in firefox exceeding `max-width` causing element to not wrap correctly
- **Popup** - Fixed bug which could cause pre-existing inline popup to be removed from DOM after hiding
- **Search** - Search API calls now use the same level debug settings as search
- **Tab** - Tab name is no longer case sensitive
- **Table** - `very basic table` now works together with `padded table`

3
src/definitions/modules/popup.js

@ -96,6 +96,7 @@ $.fn.popup = function(parameters) {
else {
if(settings.inline) {
$popup = $target.next(selector.popup).eq(0);
settings.popup = $popup;
}
}
if(settings.popup) {
@ -337,6 +338,8 @@ $.fn.popup = function(parameters) {
removePopup: function() {
module.debug('Removing popup', $popup);
if( module.has.popup() && !settings.popup) {
console.log('removing');
debugger;
$popup.remove();
$popup = undefined;
}

Loading…
Cancel
Save