[Pkg-mozext-commits] [automatic-save-folder] 41/133: Change : On the download dialog, disable the suggested folders if the "What should Firefox do with this file?" group's option is not set to "Save File"
David Prévot
taffit at moszumanska.debian.org
Mon Apr 27 20:33:50 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 c6b6c86f78f1a273fb1e29754aaf1d107f462a22
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date: Tue Dec 8 20:24:55 2009 +0000
Change : On the download dialog, disable the suggested folders if the
"What should Firefox do with this file?" group's option is
not set to "Save File"
git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@41 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
content/asf_download.js | 30 ++++++++++++++++++++++++++++++
locale/en-US/about.dtd | 1 +
locale/fr-FR/about.dtd | 1 +
3 files changed, 32 insertions(+)
diff --git a/content/asf_download.js b/content/asf_download.js
index 9b06ef3..20fce5d 100644
--- a/content/asf_download.js
+++ b/content/asf_download.js
@@ -235,6 +235,7 @@ Copyright (C) 2007-2009 Eric Cassar (Cyan).
{
// show or hide the asf option on saving window
this.show_dloptions();
+ this.check_uCTOption();
}
return false;
@@ -679,6 +680,29 @@ Copyright (C) 2007-2009 Eric Cassar (Cyan).
},
+ check_uCTOption: function () {
+ // Check if the user change the unkownContentType option (open with, save as, save with a download manager, etc.)
+ var save = document.getElementById("save").selected;
+ var asf_radio_savepath = document.getElementById('asf_radio_savepath');
+ var asf_radiogroup_pathselect = document.getElementById('asf_radiogroup_pathselect');
+ var asf_folder_list = document.getElementById('asf_folder_list');
+
+
+ if(save) // if set to "save the file"
+ {
+ asf_radio_savepath.disabled = false;
+ asf_radiogroup_pathselect.disabled = false;
+ asf_folder_list.disabled = false;
+ }
+ else
+ {
+ asf_radio_savepath.disabled = true;
+ asf_radiogroup_pathselect.disabled = true;
+ asf_folder_list.disabled = true;
+ }
+ },
+
+
indexInArray: function (arr,val){
val = val.replace(/\\/g,'\\\\');
var test_regexp = new RegExp("^"+val+"$");
@@ -860,4 +884,10 @@ Copyright (C) 2007-2009 Eric Cassar (Cyan).
function(){ automatic_save_folder.main(); }, // Run main from automatic_save_folder to check the filters
false
);
+
+ addEventListener(
+ "click", // After a click in the unknownContentType.xul, check if the user changed the saving option (save, open, etc.)
+ function(){ automatic_save_folder.check_uCTOption(); }, // Run main from automatic_save_folder to check the filters
+ false
+ );
\ No newline at end of file
diff --git a/locale/en-US/about.dtd b/locale/en-US/about.dtd
index caad865..dfdb53c 100644
--- a/locale/en-US/about.dtd
+++ b/locale/en-US/about.dtd
@@ -41,6 +41,7 @@
* On the download dialog's drop-down menu: Sort path list alphabetically, remove duplicates, and made them working with dynamic renaming folder if option enabled.
* Separated the "informations" tab in two other tabs "Help" and "About...".
* Added tooltips instead of help text bellow each options (has some issues with Firefox2).
+* On the download dialog, disable the suggested folders if the "What should Firefox do with this file?" group's option is not set to "Save File"
! Correct links to Mozilla website, which were forced to the French page.
! Correct the filter's checking when Dynamic folder creation is enabled
! Prevent an exception when "use current website URL" option is enabled and the address bar doesn't contain an URL.
diff --git a/locale/fr-FR/about.dtd b/locale/fr-FR/about.dtd
index 9b573c1..704eb7b 100644
--- a/locale/fr-FR/about.dtd
+++ b/locale/fr-FR/about.dtd
@@ -41,6 +41,7 @@
* Dans le menu déroulant sur la fenêtre de sauvegarde : Listing des dossiers par ordre alphabétique, suppression des doublons et nom de dossier dynamique si l'option est activée.
* Séparation de l'onglet "informations" en deux onglets "Aide" et "À propos...".
* Ajout d'infobulles à la place du texte explicatif sous les options (Quelques problèmes rencontrés avec Firefox2).
+* Sur la fenêtre de sauvegarde, désactivation des suggestions de dossiers si l'option du groupe "Que dois faire Firefox avec ce ficher ?" n'est pas sur "Enregistrer le fichier"
! Correction des liens vers Mozilla qui forçait le chargement de la page en Français.
! Correction d'une vérification du filtrage lorsque les variables dynamiques étaient utilisés.
! Correction d'une exception lorsque l'option "Utiliser l'URL du site courant" est activé et que la barre d'adresse ne contient pas d'URL.
--
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