X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/6dc154ec98d58159b3e75447ce7b7fe5642acec4..a5cf02e922943b84bb998f80cd40072f1ff87cf5:/philo/static/philo/js/EmbedWidget.js diff --git a/philo/static/philo/js/EmbedWidget.js b/philo/static/philo/js/EmbedWidget.js index f946740..7293125 100644 --- a/philo/static/philo/js/EmbedWidget.js +++ b/philo/static/philo/js/EmbedWidget.js @@ -28,7 +28,7 @@ oldDismissRelatedLookupPopup = window.dismissRelatedLookupPopup; window.dismissRelatedLookupPopup = function (win, chosenId) { var name = windowname_to_id(win.name), - elem = $('#'+win.name), val; + elem = $('#'+name), val; // if the original element was an embed widget, run our script if (elem.parent().hasClass('embed-widget')) { contenttype = $('select',elem.parent()).val();