[LON-CAPA-cvs] cvs: loncom /html/res/adm/pages/bookmarkmenu bookmarklib.js

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 20 Apr 2006 04:08:07 -0000


albertel		Thu Apr 20 00:08:07 2006 EDT

  Modified files:              
    /loncom/html/res/adm/pages/bookmarkmenu	bookmarklib.js 
  Log:
  - support inlinemenu + bookmark gotos
  
  
Index: loncom/html/res/adm/pages/bookmarkmenu/bookmarklib.js
diff -u loncom/html/res/adm/pages/bookmarkmenu/bookmarklib.js:1.20 loncom/html/res/adm/pages/bookmarkmenu/bookmarklib.js:1.21
--- loncom/html/res/adm/pages/bookmarkmenu/bookmarklib.js:1.20	Mon Jun 23 15:03:33 2003
+++ loncom/html/res/adm/pages/bookmarkmenu/bookmarklib.js	Thu Apr 20 00:08:04 2006
@@ -1,7 +1,7 @@
 // The LearningOnline Network with CAPA
 // bookmarklib.js
 // 
-// $Id: bookmarklib.js,v 1.20 2003/06/23 19:03:33 www Exp $
+// $Id: bookmarklib.js,v 1.21 2006/04/20 04:08:04 albertel Exp $
 // 
 // Copyright Michigan State University Board of Trustees
 // 
@@ -405,7 +405,11 @@
 }
 
 function linkGoto() {
-   self.opener.clientwindow.location.href=this.url;
+   if (typeof(self.opener.clientwindow) != 'undefined') {
+       self.opener.clientwindow.location.href=this.url;
+   } else {
+       self.opener.location.href=this.url;
+   }
 }
 
 function linkEdit() {