[Pkg-mozext-commits] [sage-extension] 45/49: [15724] prevent new browser window on feed title click in sidebar

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.

commit d81d00684ec75a0be66e6134f82e18cb3412af0c
Author: Peter Andrews <petea at jhu.edu>
Date:   Fri Nov 17 21:15:57 2006 +0000

    [15724] prevent new browser window on feed title click in sidebar
---
 src/sage/content/sage.js       | 11 ++++++-----
 src/sage/skin/classic/sage.css |  2 +-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/sage/content/sage.js b/src/sage/content/sage.js
index 76be958..d8279ae 100755
--- a/src/sage/content/sage.js
+++ b/src/sage/content/sage.js
@@ -267,12 +267,13 @@ function rssItemListBoxClick(aEvent) {
 
 function rssTitleLabelClick(aNode, aEvent){
 	var tabbed = false;
-	if(!aNode.hasAttribute("href") || aEvent.button == 2) {
+	if(!currentFeed || aEvent.button == 2) {
 		return;
 	}
 
-	var link = aNode.getAttribute("href");
-	openURI( link, aEvent );
+	//var link = aNode.getAttribute("href");
+	var link = currentFeed.getLink();
+	openURI(link, aEvent);
 }
 
 function setStatusLoading(label) {
@@ -291,10 +292,10 @@ function setStatusDone() {
 	if(currentFeed) {
 		rssTitleLabel.value = currentFeed.getTitle();
 		if(currentFeed.getLink()) {
-			rssTitleLabel.setAttribute("href", currentFeed.getLink());
+			rssTitleLabel.setAttribute("class", "link");
 			rssTitleLabel.tooltipText = currentFeed.getLink();
 		} else {
-			rssTitleLabel.removeAttribute("href");
+			rssTitleLabel.removeAttribute("class");
 			rssTitleLabel.tooltipText = "";
 		}
 	}
diff --git a/src/sage/skin/classic/sage.css b/src/sage/skin/classic/sage.css
index b898678..1e554ab 100755
--- a/src/sage/skin/classic/sage.css
+++ b/src/sage/skin/classic/sage.css
@@ -120,7 +120,7 @@ treechildren::-moz-tree-separator {
   list-style-image: url("chrome://sage/skin/icon/error.gif");
 }
 
-#rssTitleLabel[href]:hover{
+#rssTitleLabel.link:hover{
   text-decoration: underline;
   cursor: pointer;
 }

-- 
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