[Pkg-mozext-commits] [sage-extension] 21/49: Tree API changes for Deer Park compatibility
David Prévot
taffit at moszumanska.debian.org
Fri May 1 03:10:53 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 02c8675e5b3a3efaee5902735a8b5c78058a3732
Author: Peter Andrews <petea at jhu.edu>
Date: Fri Jun 24 04:40:24 2005 +0000
Tree API changes for Deer Park compatibility
---
src/sage/content/discover_feeds.js | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/sage/content/discover_feeds.js b/src/sage/content/discover_feeds.js
index 7bb4066..3048bcc 100644
--- a/src/sage/content/discover_feeds.js
+++ b/src/sage/content/discover_feeds.js
@@ -141,8 +141,14 @@ function progressUpdate() {
function doAddFeed() {
var index = feedTree.view.selection.currentIndex;
if(index != -1) {
- var url = feedTree.view.getCellText(index, "url");
- var title = feedTree.view.getCellText(index, "title");
+ var url, title;
+ if (feedTree.columns) { // columns property introduced in Firefox 1.1
+ url = feedTree.view.getCellText(index, feedTree.columns.getNamedColumn("url"));
+ title = feedTree.view.getCellText(index, feedTree.columns.getNamedColumn("title"));
+ } else {
+ url = feedTree.view.getCellText(index, "url");
+ title = feedTree.view.getCellText(index, "title");
+ }
if(url) {
if(title == "") {
title = "No Title";
@@ -158,7 +164,7 @@ function doAddFeed() {
// select new feed in sibebar
var bm_index = bookmarksTree.treeBoxObject.view.rowCount - 1;
bookmarksTree.treeBoxObject.ensureRowIsVisible(bm_index);
- bookmarksTree.treeBoxObject.selection.select(bm_index);
+ bookmarksTree.treeBoxObject.view.selection.select(bm_index);
}
}
return true;
--
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