[Pkg-mozext-commits] [sage-extension] 15/20: install fixes
David Prévot
taffit at moszumanska.debian.org
Fri May 1 03:10:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag sage_1_2
in repository sage-extension.
commit 6d1c1f503a1119549b53717f6f318439e0c2c880
Author: Peter Andrews <petea at jhu.edu>
Date: Sat Jul 31 07:57:05 2004 +0000
install fixes
---
src/sage/content/sage.js | 23 ++++++++++++-----------
src/sage/content/sage.xul | 2 +-
2 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/src/sage/content/sage.js b/src/sage/content/sage.js
index ce7131c..1ad78d5 100755
--- a/src/sage/content/sage.js
+++ b/src/sage/content/sage.js
@@ -52,7 +52,7 @@ function init() {
logMessage("setting default preferences...");
var new_folder = BMSVC.createFolderInContainer("Sage Feeds", RDF.GetResource("NC:BookmarksRoot"), null);
CommonFunc.setPrefValue(CommonFunc.RSS_READER_FOLDER_ID, "str", new_folder.Value);
- if(BMSVC.createBookmarkInContainer.length == 7) {
+ if(BMSVC.createBookmarkInContainer.length == 7) { // firefox 0.8 and lower
BMSVC.createBookmarkInContainer("BBC News | News Front Page | World Edition", "http://news.bbc.co.uk/rss/newsonline_world_edition/front_page/rss091.xml", null, "updated", null, new_folder, null);
BMSVC.createBookmarkInContainer("Yahoo! News - Sports", "http://rss.news.yahoo.com/rss/sports", null, "updated", null, new_folder, null);
BMSVC.createBookmarkInContainer("Sage Project News", "http://sage.mozdev.org/rss.xml", null, "updated", null, new_folder, null);
@@ -61,17 +61,18 @@ function init() {
BMSVC.createBookmarkInContainer("Yahoo! News - Sports", "http://rss.news.yahoo.com/rss/sports", null, "updated", null, null, new_folder, null);
BMSVC.createBookmarkInContainer("Sage Project News", "http://sage.mozdev.org/rss.xml", null, "updated", null, null, new_folder, null);
}
- setCheckboxCheck("chkShowSearchBar", "false");
- setCheckboxCheck("chkShowToolTip", "true");
- setCheckboxCheck("chkShowFeedItemList", "true");
+ setCheckbox("chkShowSearchBar", "false");
+ setCheckbox("chkShowTooltip", "true");
+ setCheckbox("chkShowFeedItemList", "true");
}
- // set feed folder location
+ // get feed folder location
sageFolderID = CommonFunc.getPrefValue(CommonFunc.RSS_READER_FOLDER_ID, "str", "NC:BookmarksRoot");
// check for changes to the feed folder
prefObserverSageFolder = CommonFunc.addPrefListener(CommonFunc.RSS_READER_FOLDER_ID, sageFolderChanged);
-
+ // set feed folder location
bookmarksTree.tree.setAttribute("ref", sageFolderID);
+ // select first entry
bookmarksTree.treeBoxObject.selection.select(0);
FeedSearch.init();
@@ -364,14 +365,14 @@ function isVisited(aURL) {
return false;
}
-function getCheckboxCheck(aID) {
- var checkboxNode = document.getElementById(aID);
+function getCheckboxCheck(element_id) {
+ var checkboxNode = document.getElementById(element_id);
return checkboxNode.getAttribute("checked") == "true";
}
-function setCheckboxCheck(aID, value) {
- var checkboxNode = document.getElementById(aID);
- return checkboxNode.setAttribute("checked") == value;
+function setCheckbox(element_id, value) {
+ var checkboxNode = document.getElementById(element_id);
+ checkboxNode.setAttribute("checked", value);
}
function showRssItemListPopup(aEvent) {
diff --git a/src/sage/content/sage.xul b/src/sage/content/sage.xul
index ccbd55b..ed50173 100755
--- a/src/sage/content/sage.xul
+++ b/src/sage/content/sage.xul
@@ -112,7 +112,7 @@
</vbox>
<popupset>
- <tooltip id="rssItemToolTip" onpopupshowing="populateToolTip(event)"/>
+ <tooltip id="rssItemToolTip" onpopupshowing="populateToolTip(event)" noautohide="true"/>
<popup id="popSearchEngine" datasources="rdf:null" ref="urn:rrp:searchengine:root">
<template>
<menuitem type="checkbox" uri="..." value="..."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git
More information about the Pkg-mozext-commits
mailing list