Pārlūkot izejas kodu

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

Michael Kutý 8 gadi atpakaļ
vecāks
revīzija
3a659c735c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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',