Browse Source

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

Michael Kutý 8 năm trước cách đây
mục cha
commit
3a659c735c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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',