diff --git a/chrome/chromeFiles/content/scholar/scholar.js b/chrome/chromeFiles/content/scholar/scholar.js index 4c2a8e8d4..271c6a1e3 100644 --- a/chrome/chromeFiles/content/scholar/scholar.js +++ b/chrome/chromeFiles/content/scholar/scholar.js @@ -21,12 +21,12 @@ function init() function newItem(typeID) { - + alert("new item of type: "+typeID); } function newFolder() { - + alert("new folder"); } function folderSelected() @@ -46,4 +46,18 @@ function folderSelected() document.getElementById('items-tree').view = null; } +} + +function itemSelected() +{ + document.getElementById('view-pane').setAttribute('src','http://www.apple.com/'); +} + +function deleteSelection() +{ + if(itemsView && itemsView.selection.count > 0 && confirm("Are you sure you want to delete the selection????")) + { + //either determine focus or just delete from items... + alert("delete not quite implemented yet"); + } } \ No newline at end of file diff --git a/chrome/chromeFiles/content/scholar/scholar.xul b/chrome/chromeFiles/content/scholar/scholar.xul index ec39e4a94..e862cb46d 100644 --- a/chrome/chromeFiles/content/scholar/scholar.xul +++ b/chrome/chromeFiles/content/scholar/scholar.xul @@ -6,8 +6,8 @@ id="scholar-window" title="Scholar" orient="vertical" - width="800" - height="600" + width="1000" + height="700" onload="Scholar.init(); init();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> @@ -20,19 +20,17 @@