[Pkg-mozext-commits] [automatic-save-folder] 102/133: Fix: Fixed single-click saving on Firefox 7.0.1+ if the current website URI is not in the database. (Thanks to users report and testing)

David Prévot taffit at moszumanska.debian.org
Mon Apr 27 20:33:56 UTC 2015


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

taffit pushed a commit to branch wip
in repository automatic-save-folder.

commit a7e431b238f4ec67ca50952ede93a82f8e5296d8
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date:   Sun Jan 8 09:30:30 2012 +0000

    Fix: Fixed single-click saving on Firefox 7.0.1+ if the current website URI
         is not in the database. (Thanks to users report and testing)
    
    git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@110 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
 content/asf_download.js  | 10 +++++-----
 content/common.dtd       |  2 +-
 content/help/about.xhtml |  4 ++++
 locale/cs/about.dtd      |  2 ++
 locale/en-US/about.dtd   |  2 ++
 locale/fr/about.dtd      |  2 ++
 locale/it/about.dtd      |  2 ++
 locale/ru/about.dtd      |  2 ++
 locale/sv-SE/about.dtd   |  2 ++
 9 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/content/asf_download.js b/content/asf_download.js
index 9323df8..1f34f12 100644
--- a/content/asf_download.js
+++ b/content/asf_download.js
@@ -94,9 +94,9 @@ Copyright (C) 2007-2011 Éric Cassar (Cyan).
 			if (this.current_uri == "") this.current_uri = tabLocation.href; // fix website opening a new about:blank page when clicking on a download link, and that tab is not auto-closing.
 			
 			// read lastpath for that uri
-			let uri = this.current_uri;
-			let file = gDownloadLastDir.getFile(uri);
-			this.current_uri_lastpath = file.path;
+			var uri = this.current_uri;
+			var file = gDownloadLastDir.getFile(uri);
+			if (file != null) this.current_uri_lastpath = file.path;
 		}
 		
 		var domain_testOrder = prefManager.getCharPref("extensions.asf.domainTestOrder");
@@ -782,7 +782,7 @@ Copyright (C) 2007-2011 Éric Cassar (Cyan).
 		var asf_lastpath = document.getElementById('asf_lastpath');
 		asf_lastpath.label = lastpath;
 		
-		if ( (lastpath == folder) || (lastpath == "") )  // if same or empty (first time using ASF), do not show radio for lastpath choice
+		if ( (lastpath == folder) || (lastpath == "") || (this.indexInArray(this.matching_folders, lastpath) > -1))  // if same or empty (first time using ASF), or already present from a filter's path, do not show radio for lastpath choice
 		{
 			asf_lastpath.hidden = true;
 		}
@@ -794,7 +794,7 @@ Copyright (C) 2007-2011 Éric Cassar (Cyan).
 		// Firefox 7.0.1+ : Check the current uri lastpath, if not in the available paths then print another radio choice to the user
 		var asf_currentURI_lastpath = document.getElementById('asf_currentURI_lastpath');
 		asf_currentURI_lastpath.hidden = true;
-		if (this.firefoxversion >= 7.01)
+		if ((this.firefoxversion >= 7.01) && (this.current_uri_lastpath != ""))
 		{
 			asf_currentURI_lastpath.label = this.current_uri_lastpath;
 			if ( (this.indexInArray(this.matching_folders, this.current_uri_lastpath) == -1) && (lastpath != this.current_uri_lastpath) ) // check if it's already listed 
diff --git a/content/common.dtd b/content/common.dtd
index a808205..d7e1c99 100644
--- a/content/common.dtd
+++ b/content/common.dtd
@@ -1,5 +1,5 @@
 <!-- Current version -->
-<!ENTITY asf.version "1.0.3">
+<!ENTITY asf.version "1.0.4bRev108">
 
 <!ENTITY about.translators "
 - cs : Stanislav Horáček<br />
diff --git a/content/help/about.xhtml b/content/help/about.xhtml
index 4f73295..cfb7f49 100644
--- a/content/help/about.xhtml
+++ b/content/help/about.xhtml
@@ -34,6 +34,10 @@
 ! &about.fix; 
 
 
+<strong>&about.version.title; 1.0.4 :</strong> (2012 01 07)
+&about.version.104;
+
+
 <strong>&about.version.title; 1.0.3 :</strong> (2011 12 07)
 &about.version.103;
 
diff --git a/locale/cs/about.dtd b/locale/cs/about.dtd
index 5b4a948..6d4b04d 100644
--- a/locale/cs/about.dtd
+++ b/locale/cs/about.dtd
@@ -23,6 +23,8 @@
 <!ENTITY about.version.title "Verze">
 
 <!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
+<!ENTITY about.version.104 "! Fixed single-click saving on Firefox 7.0.1+ if the current website URI is not in the database.">
+
 <!ENTITY about.version.103 "+ Firefox 7.0.1: Compatibility with the new Last Saved Path feature (Now memorized on a site-by-site basis).
 + Added an option to use the new site-by-site save mode for Firefox 7.0.1+ when no filter match.
 - Removed beta checking feature on non beta releases.
diff --git a/locale/en-US/about.dtd b/locale/en-US/about.dtd
index 6e4c84a..c957b7d 100644
--- a/locale/en-US/about.dtd
+++ b/locale/en-US/about.dtd
@@ -23,6 +23,8 @@
 <!ENTITY about.version.title "Version">
 
 <!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
+<!ENTITY about.version.104 "! Fixed single-click saving on Firefox 7.0.1+ if the current website URI is not in the database.">
+
 <!ENTITY about.version.103 "+ Compatibility with the new Firefox 7.0.1 Last Saved Path feature (Now memorized on a site-by-site basis).
 + Added an option to use the new site-by-site save mode for Firefox 7.0.1+ when no filter match.
 - Removed beta checking feature on non beta releases.
diff --git a/locale/fr/about.dtd b/locale/fr/about.dtd
index be40309..669252d 100644
--- a/locale/fr/about.dtd
+++ b/locale/fr/about.dtd
@@ -23,6 +23,8 @@
 <!ENTITY about.version.title "Version">
 
 <!-- Conserver les retours à la ligne car le tag < pre > est utilisé, gardez les deux espaces en début de ligne pour l'indentation -->
+<!ENTITY about.version.104 "! Correction de l'enregistrement d'un fichier avec simple-clic pour Firefox 7.0.1+ si l'URI du site n'est pas présent dans la base de donnée.">
+
 <!ENTITY about.version.103 "+ Compatibilité avec la nouvelle fonction de Firefox 7.0.1 concernant le dernier chemin d'enregistrement (Maintenant mémorisé site par site).
 + Ajout d'une option pour utiliser le mode site par site pour firefox 7.0.1+ lorqu'aucun filtre ne correspond.
 - Suppression de la recherche d'une nouvelle version béta pour les versions non béta.
diff --git a/locale/it/about.dtd b/locale/it/about.dtd
index fb73a80..ee7d321 100644
--- a/locale/it/about.dtd
+++ b/locale/it/about.dtd
@@ -23,6 +23,8 @@
 <!ENTITY about.version.title "Versione">
 
 <!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
+<!ENTITY about.version.104 "! Fixed single-click saving on Firefox 7.0.1+ if the current website URI is not in the database.">
+
 <!ENTITY about.version.103 "+ Firefox 7.0.1: Compatibility with the new Last Saved Path feature (Now memorized on a site-by-site basis).
 + Added an option to use the new site-by-site save mode for Firefox 7.0.1+ when no filter match.
 - Removed beta checking feature on non beta releases.
diff --git a/locale/ru/about.dtd b/locale/ru/about.dtd
index 2f5dee4..9d5d76a 100644
--- a/locale/ru/about.dtd
+++ b/locale/ru/about.dtd
@@ -23,6 +23,8 @@
 <!ENTITY about.version.title "Версия">
 
 <!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
+<!ENTITY about.version.104 "! Fixed single-click saving on Firefox 7.0.1+ if the current website URI is not in the database.">
+
 <!ENTITY about.version.103 "+ Firefox 7.0.1: Compatibility with the new Last Saved Path feature (Now memorized on a site-by-site basis).
 + Added an option to use the new site-by-site save mode for Firefox 7.0.1+ when no filter match.
 - Removed beta checking feature on non beta releases.
diff --git a/locale/sv-SE/about.dtd b/locale/sv-SE/about.dtd
index 3e6e7ac..fab62c5 100644
--- a/locale/sv-SE/about.dtd
+++ b/locale/sv-SE/about.dtd
@@ -23,6 +23,8 @@
 <!ENTITY about.version.title "Version">
 
 <!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
+<!ENTITY about.version.104 "! Fixed single-click saving on Firefox 7.0.1+ if the current website URI is not in the database.">
+
 <!ENTITY about.version.103 "+ Firefox 7.0.1: Compatibility with the new Last Saved Path feature (Now memorized on a site-by-site basis).
 + Added an option to use the new site-by-site save mode for Firefox 7.0.1+ when no filter match.
 - Removed beta checking feature on non beta releases.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/automatic-save-folder.git



More information about the Pkg-mozext-commits mailing list