Fixed raw-id-field whith django-admin-interface #58

pull/62/head
Fabio Caccamo 2019-03-22 11:41:31 +01:00
parent c8690b316b
commit cb7a358c6c
1 changed files with 5 additions and 7 deletions

View File

@ -78,12 +78,10 @@ if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined')
}
// build the iframe html
var iframeHTML = '<div class="related-modal-iframe-container">' +
'<iframe id="related-modal-iframe" name="' + iframeName + '" src="' + iframeSrc + '"></iframe>' +
'</div>';
// create the iframe jquery element
var iframeEl = $(iframeHTML);
var iframeHTML = '<iframe id="related-modal-iframe" name="' + iframeName + '" src="' + iframeSrc + '"></iframe>';
var modalHTML = '<div class="related-modal-iframe-container">' + iframeHTML + '</div>';
var modalEl = $(modalHTML);
var iframeEl = modalEl.find('#related-modal-iframe');
if (e.data.lookup === true)
{
@ -111,7 +109,7 @@ if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined')
showCloseBtn: true,
closeBtnInside: true,
items: {
src: iframeEl,
src: modalEl,
type: 'inline'
}
});