beagle r4680 - in trunk/beagle/firefox-extension: . chrome/content
- From: taofei svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4680 - in trunk/beagle/firefox-extension: . chrome/content
- Date: Thu, 10 Apr 2008 14:36:29 +0100 (BST)
Author: taofei
Date: Thu Apr 10 14:36:28 2008
New Revision: 4680
URL: http://svn.gnome.org/viewvc/beagle?rev=4680&view=rev
Log:
Load differen't script for different firefox version (indexBookmark.js and indexBookmark3.js)
It should work for both firefox 2 and firefox 3
Modified:
trunk/beagle/firefox-extension/Makefile.am
trunk/beagle/firefox-extension/chrome/content/beagleOverlay.js
trunk/beagle/firefox-extension/chrome/content/beagleOverlay.xul
trunk/beagle/firefox-extension/chrome/content/indexBookmark3.js
trunk/beagle/firefox-extension/install.rdf
Modified: trunk/beagle/firefox-extension/Makefile.am
==============================================================================
--- trunk/beagle/firefox-extension/Makefile.am (original)
+++ trunk/beagle/firefox-extension/Makefile.am Thu Apr 10 14:36:28 2008
@@ -19,6 +19,7 @@
chrome/content/indexLink.xul \
chrome/content/indexLink.js \
chrome/content/indexBookmark.js \
+ chrome/content/indexBookmark3.js \
chrome/content/md5.js \
chrome/content/utils.js \
chrome/content/i18n.js \
Modified: trunk/beagle/firefox-extension/chrome/content/beagleOverlay.js
==============================================================================
--- trunk/beagle/firefox-extension/chrome/content/beagleOverlay.js (original)
+++ trunk/beagle/firefox-extension/chrome/content/beagleOverlay.js Thu Apr 10 14:36:28 2008
@@ -127,7 +127,10 @@
this.disable();
}
if(!this.FILE_UTILS.exists(this.dataPath))
- ;// do something here ? is it safe to create the dir ?
+ {
+ var d = new Dir(this.dataPath);
+ d.create();
+ };
}
this.addEventListener();
if (this.pref.get("beagle.first.run"))
Modified: trunk/beagle/firefox-extension/chrome/content/beagleOverlay.xul
==============================================================================
Binary files. No diff available.
Modified: trunk/beagle/firefox-extension/chrome/content/indexBookmark3.js
==============================================================================
--- trunk/beagle/firefox-extension/chrome/content/indexBookmark3.js (original)
+++ trunk/beagle/firefox-extension/chrome/content/indexBookmark3.js Thu Apr 10 14:36:28 2008
@@ -23,7 +23,6 @@
return list;
}
-try{
var bookmarkIndexer = {
@@ -125,9 +124,4 @@
},
}
-}
-catch(e)
-{
- //not firefox 3
-}
Modified: trunk/beagle/firefox-extension/install.rdf
==============================================================================
Binary files. No diff available.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]