diff -uNr hcpm.org/content/hcpm/hcpmHistUtils.js hcpm/content/hcpm/hcpmHistUtils.js
--- hcpm.org/content/hcpm/hcpmHistUtils.js 2005-09-11 01:53:40.000000000 +0900
+++ hcpm/content/hcpm/hcpmHistUtils.js 2006-01-25 02:17:56.000000000 +0900
@@ -75,8 +75,8 @@
if(aPref && aToggle != true) { //means pref change
var oldSetting = gPrefService.getBoolPref("hcpm.Show.Always");
gPrefService.setBoolPref("hcpm.Show.Always", !oldSetting);
+ aToggle = true; //set to "true", to show menu if hidden
if(oldSetting == false) {//Since "show all menus" has been checked
- aToggle = true; //set to "true", to show menu if hidden
stayOpen = true;//force to stay open
}
}
@@ -135,10 +135,15 @@
}
var historyMenuItems = document.getElementById('history-menu').childNodes;
var i = 0;
- for (i = 0; i < historyMenuItems.length; i++)
+ for (i = 0; i < historyMenuItems.length - 1; i++)
{
(aToggle) ? historyMenuItems[i].setAttribute("ehmMode", "icon") : historyMenuItems[i].setAttribute("ehmMode", "text");
- }
+ }
+ historyMenuItems = historyMenuItems[historyMenuItems.length - 1].childNodes;
+ for (i = 0; i < historyMenuItems.length; i++)
+ {
+ (aToggle) ? historyMenuItems[i].setAttribute("ehmMode", "icon") : historyMenuItems[i].setAttribute("ehmMode", "text");
+ }
}
function matchListFlip() {
diff -uNr hcpm.org/content/hcpm/history/history.js hcpm/content/hcpm/history/history.js
--- hcpm.org/content/hcpm/history/history.js 2005-10-08 01:34:00.000000000 +0900
+++ hcpm/content/hcpm/history/history.js 2006-01-22 17:38:32.000000000 +0900
@@ -338,8 +338,11 @@
OpenURLArrayInTabs(URLArray);
}
}
- else if (!isContainer(gHistoryTree, currentIndex))
- openTopWin(url);
+ else if (!isContainer(gHistoryTree, currentIndex)) {
+ //openTopWin(url);
+ var URLArray = [url];
+ OpenURLArrayInTabs(URLArray);
+ }
return true;
}
diff -uNr hcpm.org/content/hcpm/historyComm.xul hcpm/content/hcpm/historyComm.xul
--- hcpm.org/content/hcpm/historyComm.xul 2005-09-03 08:43:26.000000000 +0900
+++ hcpm/content/hcpm/historyComm.xul 2006-01-25 01:58:02.000000000 +0900
@@ -80,7 +80,9 @@
accesskey="&findHisCmd.accesskey;" oncommand="showAdvToolbar(false, true);"/>