Compare commits

...

4 Commits

Author SHA1 Message Date
Fabio Caccamo c680bb5461 Updated version 2018-11-13 10:19:35 +01:00
Fabio Caccamo ce32a56cdf Fixed #44 - raw_id_fields issue with django 2.1 2018-11-13 10:19:24 +01:00
Fabio Caccamo 7137cbab08 Updated version. 2018-10-24 17:27:55 +02:00
Fabio Caccamo 3f7b1e54e9 Fixed #42 - Related modal does not dismiss on popup response. 2018-10-24 17:27:42 +02:00
4 changed files with 30 additions and 23 deletions
+9 -1
View File
@@ -1,6 +1,11 @@
if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined')
{
(function($) { (function($) {
'use strict'; 'use strict';
$(function() {
$(document).ready(function() {
$('.cancel-link').click(function(e) { $('.cancel-link').click(function(e) {
e.preventDefault(); e.preventDefault();
var parentWindow = window.parent; var parentWindow = window.parent;
@@ -12,5 +17,8 @@
} }
return false; return false;
}); });
}); });
})(django.jQuery); })(django.jQuery);
}
@@ -1,5 +1,5 @@
/* global opener */ (function() {
(function($) {
'use strict'; 'use strict';
function getModalWindowData() function getModalWindowData()
@@ -48,5 +48,5 @@
} }
break; break;
} }
})(django.jQuery);
})();
@@ -86,7 +86,7 @@ if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined')
{ {
// set current window as iframe opener because // set current window as iframe opener because
// the callback is called on the opener window // the callback is called on the opener window
iframeEl.load(function(){ iframeEl.on('load', function() {
var iframeObj = $(this).get(0); var iframeObj = $(this).get(0);
var iframeWindow = iframeObj.contentWindow; var iframeWindow = iframeObj.contentWindow;
iframeWindow.opener = window; iframeWindow.opener = window;
@@ -130,4 +130,3 @@ if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined')
})(django.jQuery); })(django.jQuery);
} }
+1 -1
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
__version__ = '0.8.0' __version__ = '0.8.2'