Explorar o código

Add fallback to window.opener which supports old django popups. (#167)

Michael Kutý %!s(int64=8) %!d(string=hai) anos
pai
achega
3a659c735c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      jet/static/jet/js/src/features/related-popups.js

+ 1 - 1
jet/static/jet/js/src/features/related-popups.js

@@ -217,7 +217,7 @@ RelatedPopups.prototype = {
             = window.showRelatedObjectPopup
             = function() { };
 
-        window.opener = this.windowStorage.previous();
+        window.opener = this.windowStorage.previous() || window.opener;
         window.dismissRelatedLookupPopup = function(win, chosenId) {
             self.closePopup({
                 action: 'lookup',