--- loncom/html/res/adm/pages/bookmarkmenu/bookmarklib.js 2001/04/19 04:04:49 1.17 +++ loncom/html/res/adm/pages/bookmarkmenu/bookmarklib.js 2001/04/30 11:28:05 1.18 @@ -26,8 +26,20 @@ // mm-dd-yyyy by Xxxxxxxx Xxxxxx -clienttitle="";//debug -clienthref=""; //debug +//clienttitle="Enter title here";//debug +//clienthref="Enter url here"; //debug + +//function ugh_oh( msg, url, ln ) { +// alert("Error: "+msg+" in "+url+" at line: "+ln); +// return true; +//} + +//alert("Does alert even work?"); + +//window.onerror=ugh_oh; +//this.onerror=ugh_oh; + + //--------------------------------------------------------------------- // Tree object @@ -182,28 +194,16 @@ function swapState() { //-------------------recursive, Moves folder and contents to new object // Don't forget to 'bump' before calling moveTo! function moveTo(object1) { - //alert('moveto11: from '+this.name+' to: '+object1.name+' o1 exists?'+object1.exists); object1=new newFolder(this.name,this.opened); - //alert('moveto22: from '+this.name+' to: '+object1.name+' o1 exists?'+object1.exists); - //object1.exists=this.exists; for (var i=0;i=location;i--) { if (this.p[i].exists) { //saves time by not moving non-existing items if (this.p[i].state=="folder") { @@ -533,8 +532,11 @@ function buildBookmarkMenu() { //---------------------------- function queryNewLink() { add_link=window.open('','Link','width=360,height=165'); - clienthref=this.opener.clientwindow.window.location.pathname; - clienttitle=this.opener.clientwindow.title; + clienthref="[ENTER ADDRESS HERE]"; + clienttitle="[ENTER NAME HERE]"; +// this.onerror=ugh_oh; // this doesn't seem to work properly +// clienthref=this.opener.clientwindow.window.location.pathname; +// clienttitle=this.opener.clientwindow.title; with(add_link.document) { open(); clear();