[Pkg-mozext-commits] [automatic-save-folder] 26/133: Add : Added a proper option to select the default folder when Firefox saving option "save file to:" was selected instead of "always ask where to save the file". Previously forced on "defined by filter" every time ASF preferences was opened.

David Prévot taffit at moszumanska.debian.org
Mon Apr 27 20:33:49 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 d73c46037a9618614cb04e2781a780c94efc9c4f
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date:   Tue Nov 3 13:58:49 2009 +0000

    Add : Added a proper option to select the default folder when Firefox saving option "save file to:" was selected instead of "always ask where to save the file". Previously forced on "defined by filter" every time ASF preferences was opened.
    
    git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@26 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
 content/asf.js       |  4 ----
 content/options.xul  | 14 +++++++++++++-
 locale/en-US/asf.dtd |  4 ++++
 locale/fr-FR/asf.dtd |  4 ++++
 locale/it-IT/asf.dtd |  4 ++++
 5 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/content/asf.js b/content/asf.js
index b56ba3c..6ae4915 100644
--- a/content/asf.js
+++ b/content/asf.js
@@ -52,10 +52,6 @@ var automatic_save_folder = {
 			lastdir.checked = true;  	
 			lastdir.hidden = true; // hidden on FF3, as lastdir must always be true, don't allow the user to disable it.
 			this.prefManager.setBoolPref("extensions.asf.lastdir", true);
-			
-			// set the browser.download.folderList to 2, needed for vista users to enable ASF to change the saving folder when FF download option is set to "Save the file in the folder ...".
-			// 0 = desktop ; 1 = system donwload directory ; 2 = user defined
-			this.prefManager.setIntPref("browser.download.folderList", "2");
 		}
 		
 		
diff --git a/content/options.xul b/content/options.xul
index 5077ab5..f1de887 100644
--- a/content/options.xul
+++ b/content/options.xul
@@ -21,7 +21,7 @@
 			xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="&prefwindow.title; (&asf.version;)"
 >
 <prefpane id="asf-options"  style="padding:1px !important" flex="1" >
-	<script type="application/x-javascript" src="chrome://asf/content/asf.js"/>
+	<script type="application/x-javascript" src="chrome://asf/content/asf.js"></script>
 	<preferences>
 		<preference id="asf_lastdir" name="extensions.asf.lastdir" type="bool"/>
 		<preference id="asf_keeptemp" name="extensions.asf.keeptemp" type="bool"/>
@@ -32,6 +32,8 @@
 		<preference id="asf_dialogaccept" name="extensions.asf.dialogaccept" type="bool"/>
 		<preference id="asf_rightclick" name="extensions.asf.rightclick" type="bool"/>
 		<preference id="asf_usecurrenturl" name="extensions.asf.usecurrenturl" type="bool"/>
+		<preference id="asf_useDownloadDir" name="browser.download.useDownloadDir" type="bool"/>
+		<preference id="asf_folderList" name="browser.download.folderList" type="int"/>
 	</preferences>
 	<menupopup id="contextpopup">
 		<menuitem label="&asf.top.popup;" oncommand="automatic_save_folder.move('top');"/>
@@ -110,6 +112,16 @@
 		<groupbox id="asf-options" flex="1">
 			<caption label="&asf.options.label;"/>
 			<separator class="thin"/>
+			<hbox>
+				<checkbox id="asf-useDownloadDir" preference="asf_useDownloadDir" label="&asf.useDownloadDir.bool;"/>
+				<menulist id="asf-folderList" preference="asf_folderList">
+					<menupopup>
+						<menuitem value="0" label="&asf.desktop.label;"></menuitem>
+						<menuitem value="1" label="&asf.systemdownload.label;"></menuitem>
+						<menuitem value="2" label="&asf.filteredfolder.label;"></menuitem>
+					</menupopup>
+				</menulist>
+			</hbox>
 			<checkbox id="asf-lasdir" preference="asf_lastdir" label="&asf.lastdir.bool;"/>
 			<checkbox id="asf-dialogaccept" preference="asf_dialogaccept" label="&asf.dialogaccept.bool;"/>
 			<checkbox id="asf-usecurrenturl" preference="asf_usecurrenturl" label="&asf.usecurrenturl.bool;"/>
diff --git a/locale/en-US/asf.dtd b/locale/en-US/asf.dtd
index 11f6653..c5dd118 100644
--- a/locale/en-US/asf.dtd
+++ b/locale/en-US/asf.dtd
@@ -35,6 +35,10 @@
 
 <!-- Options tab -->
 <!ENTITY asf.options.label "Options">
+<!ENTITY asf.useDownloadDir.bool "Do not show the file explorer and save to:">
+<!ENTITY asf.desktop.label "Desktop">
+<!ENTITY asf.systemdownload.label "Downloads">
+<!ENTITY asf.filteredfolder.label "set by the filters">
 <!ENTITY asf.viewdloption.bool "View options when downloading">
 <!ENTITY asf.viewdloption.label "Allow you to see the last two destination folders and a link to add or edit the filters">
 <!ENTITY asf.viewpathselect.bool "View the list of folders">
diff --git a/locale/fr-FR/asf.dtd b/locale/fr-FR/asf.dtd
index b2f46f6..5cd9d11 100644
--- a/locale/fr-FR/asf.dtd
+++ b/locale/fr-FR/asf.dtd
@@ -35,6 +35,10 @@
 
 <!-- Options tab -->
 <!ENTITY asf.options.label "Options">
+<!ENTITY asf.useDownloadDir.bool "Ne pas afficher l'explorateur de fichier et enregistrer directement dans le dossier :">
+<!ENTITY asf.desktop.label "Bureau">
+<!ENTITY asf.systemdownload.label "Téléchargements">
+<!ENTITY asf.filteredfolder.label "défini par le filtre">
 <!ENTITY asf.viewdloption.bool "Afficher les options lors de l'enregistrement">
 <!ENTITY asf.viewdloption.label "Permet de voir les deux derniers dossiers d'enregistrement et un lien pour éditer ou ajouter de nouveaux filtres.">
 <!ENTITY asf.viewpathselect.bool "Afficher la liste des filtres">
diff --git a/locale/it-IT/asf.dtd b/locale/it-IT/asf.dtd
index e63f9dc..05777e5 100644
--- a/locale/it-IT/asf.dtd
+++ b/locale/it-IT/asf.dtd
@@ -35,6 +35,10 @@
 
 <!-- Options tab -->
 <!ENTITY asf.options.label "Opzioni">
+<!ENTITY asf.useDownloadDir.bool "Do not show the file explorer and save to:">
+<!ENTITY asf.desktop.label "Desktop">
+<!ENTITY asf.systemdownload.label "Downloads">
+<!ENTITY asf.filteredfolder.label "set by the filters">
 <!ENTITY asf.viewdloption.bool "Vedere le opzioni mentre scarica">
 <!ENTITY asf.viewdloption.label "(permette di vedere le due ultime cartelle di destinazione e un collegamento per aggiungere o modificare filtri)">
 <!ENTITY asf.viewpathselect.bool "Vedi la lista dei filtri">

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