From: Stephen Burrows Date: Fri, 15 Jul 2011 19:32:46 +0000 (-0400) Subject: Minor correction to EmbedWidget.js to handle window names with dashes. X-Git-Tag: philo-0.9.1^2~3^2~3 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/b1edf55e0d8cf076f4caddd78ea21575f72c23cf Minor correction to EmbedWidget.js to handle window names with dashes. --- 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();