--- loncom/interface/lonwishlist.pm 2017/05/22 19:18:41 1.26 +++ loncom/interface/lonwishlist.pm 2018/04/14 02:29:44 1.27 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Utility-routines for wishlist # -# $Id: lonwishlist.pm,v 1.26 2017/05/22 19:18:41 droeschl Exp $ +# $Id: lonwishlist.pm,v 1.27 2018/04/14 02:29:44 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1480,6 +1480,11 @@ sub makePage { $root = $rootgiven; @childrenRt = $root->children(); + my $windowname = 'loncapaclient'; + if ($env{'request.lti.login'}) { + $windowname .= 'lti'; + } + # breadcrumbs and start_page &Apache::lonhtmlcommon::clear_breadcrumbs(); &Apache::lonhtmlcommon::add_breadcrumb( @@ -1488,7 +1493,7 @@ sub makePage { my $startPage = &Apache::loncommon::start_page('Stored Links',undef, {'add_entries' => { 'onload' => 'javascript:onLoadAction('."'".$mode."'".');', - 'onunload' => 'javascript:window.name = '."'loncapaclient'"}}); + 'onunload' => 'javascript:window.name = '."'$windowname'"}}); my $breadcrumbs = &Apache::lonhtmlcommon::breadcrumbs('Stored Links','Wishlist');