[Pkg-mozext-commits] [automatic-save-folder] 97/133: Add: Added preferences window size persistence if resized bigger than default. Change: updated changelog.
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 631bf0033518940d35acebfe634c163e8eaa6adf
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date: Fri Nov 18 10:37:25 2011 +0000
Add: Added preferences window size persistence if resized bigger than default.
Change: updated changelog.
git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@104 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
content/asf.js | 16 +++++++++++-----
content/common.dtd | 2 +-
content/options.xul | 2 +-
install.rdf | 2 +-
locale/cs/about.dtd | 4 +++-
locale/en-US/about.dtd | 6 ++++--
locale/fr/about.dtd | 6 ++++--
locale/it/about.dtd | 4 +++-
locale/ru/about.dtd | 4 +++-
locale/sv-SE/about.dtd | 4 +++-
10 files changed, 34 insertions(+), 16 deletions(-)
diff --git a/content/asf.js b/content/asf.js
index 853421c..ff6a01d 100644
--- a/content/asf.js
+++ b/content/asf.js
@@ -59,14 +59,20 @@ var automatic_save_folder = {
// Resize the preferences window to match the localization needs.
// I don't know why width, or css width are not working, so let's use a script to resize the preferences window on load.
+ // Check the current preferences window size stored by the user, if bigger then don't resize.
+ var target_width = 617; // default sizes
+ var target_height = 423;
+ var asf_pref_window = document.getElementById("asf_pref");
+ var locale_width = document.getElementById("asf-preferences-window-width").value;
+ var locale_height = document.getElementById("asf-preferences-window-height").value;
var resize = document.getElementById("asf-preferences-window-resize").value;
- if (resize == "true")
+ if (resize == "true") // new size defined by locale.
{
- var asf_pref_window = document.getElementById("asf_pref");
- asf_pref_window.width = document.getElementById("asf-preferences-window-width").value;
- asf_pref_window.height = document.getElementById("asf-preferences-window-height").value;
+ target_width = target_width > locale_width ? target_width : locale_width;
+ target_height = target_height > locale_height ? target_height : locale_height;
}
-
+ asf_pref_window.width = asf_pref_window.width > target_width ? asf_pref_window.width : target_width;
+ asf_pref_window.height = asf_pref_window.height > target_height ? asf_pref_window.height : target_height;
//Detect OS
// var OSName="Unknown OS";
diff --git a/content/common.dtd b/content/common.dtd
index 6f7e795..2f0bfec 100644
--- a/content/common.dtd
+++ b/content/common.dtd
@@ -1,5 +1,5 @@
<!-- Current version -->
-<!ENTITY asf.version "1.0.3b">
+<!ENTITY asf.version "1.0.3bRev104">
<!ENTITY about.translators "
- cs : Stanislav Horáček<br />
diff --git a/content/options.xul b/content/options.xul
index 9c762ff..a84a6db 100644
--- a/content/options.xul
+++ b/content/options.xul
@@ -18,7 +18,7 @@
<prefwindow
id="asf_pref"
autostretch="always"
- persist="screenX screenY"
+ persist="screenX screenY width height"
buttons="accept, cancel"
defaultButton="accept"
onload="automatic_save_folder.asf_load();"
diff --git a/install.rdf b/install.rdf
index a7ebc3f..09833a1 100644
--- a/install.rdf
+++ b/install.rdf
@@ -100,7 +100,7 @@
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- firefox -->
<em:minVersion>1.5</em:minVersion>
- <em:maxVersion>7.*</em:maxVersion>
+ <em:maxVersion>10.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
diff --git a/locale/cs/about.dtd b/locale/cs/about.dtd
index 3cc1295..2cbdee9 100644
--- a/locale/cs/about.dtd
+++ b/locale/cs/about.dtd
@@ -24,8 +24,10 @@
<!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
<!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+ users when no filter match.
- Removed beta checking feature on non beta releases.
-* Prevent closing the save dialog if the preferences dialog is still open.">
+* Prevent closing the save dialog if the preferences dialog is still open.
+* Memorize the preferences window size if the user make it bigger. It will use the default size if the window is shortened.">
<!ENTITY about.version.102 "+ Přidána možnost změnit akci v možnostech automatického stahování.
+ Je-li nainstalováno rozšíření DownThemAll!, na novém panelu možností lze nastavení posílání složky určené AUS do dTa!.
diff --git a/locale/en-US/about.dtd b/locale/en-US/about.dtd
index d2104ed..981405e 100644
--- a/locale/en-US/about.dtd
+++ b/locale/en-US/about.dtd
@@ -23,9 +23,11 @@
<!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.103 "+ Firefox 7.0.1: Compatibility with the new Last Saved Path feature (Now memorized on a site-by-site basis).
+<!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+ users when no filter match.
- Removed beta checking feature on non beta releases.
-* Prevent closing the save dialog if the preferences dialog is still open.">
+* Prevent closing the save dialog if the preferences dialog is still open.
+* Memorize the preferences window size if the user make it bigger. It will use the default size if the window is shortened.">
<!ENTITY about.version.102 "+ Added an option to force the action when using the automatic download option.
+ If DownThemAll! add-on is installed, a new option's tab is available to send ASF target path to dTa!.
diff --git a/locale/fr/about.dtd b/locale/fr/about.dtd
index e9625d3..bfaff57 100644
--- a/locale/fr/about.dtd
+++ b/locale/fr/about.dtd
@@ -23,9 +23,11 @@
<!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.103 "+ Firefox 7.0.1 : Compatible avec la nouvelle fonction concernant le dernier chemin d'enregistrement (Maintenant mémorisé site par site).
+<!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 les utilisateurs de 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.
-* Empêche la fermeture de la fenêtre de sauvegarde si la fenêtre de préférence est encore ouverte.">
+* Empêche la fermeture de la fenêtre de sauvegarde si la fenêtre de préférence est encore ouverte.
+* Mémorise la taille de la fenêtre de préférences si elle est agrandie par l'utilisateur. La taille par défaut sera utilisée si la fenêtre est réduite.">
<!ENTITY about.version.102 "+ Ajout d'une option permettant de forcer l'action à effectuer lorsque l'enregistrement automatique est sélectionné.
+ Si l'extension DownThemAll! est installée, un nouvel onglet d'options est disponible permettant d'envoyer le dossier de destination d'ASF à dTa!.
diff --git a/locale/it/about.dtd b/locale/it/about.dtd
index f1d5430..6b2dfb1 100644
--- a/locale/it/about.dtd
+++ b/locale/it/about.dtd
@@ -24,8 +24,10 @@
<!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
<!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+ users when no filter match.
- Removed beta checking feature on non beta releases.
-* Prevent closing the save dialog if the preferences dialog is still open.">
+* Prevent closing the save dialog if the preferences dialog is still open.
+* Memorize the preferences window size if the user make it bigger. It will use the default size if the window is shortened.">
<!ENTITY about.version.102 "+ Added an option to force the action when using the automatic download option.
+ If DownThemAll! add-on is installed, a new option's tab is available to send ASF target path to dTa!.
diff --git a/locale/ru/about.dtd b/locale/ru/about.dtd
index ad5fef6..3e0bd90 100644
--- a/locale/ru/about.dtd
+++ b/locale/ru/about.dtd
@@ -24,8 +24,10 @@
<!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
<!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+ users when no filter match.
- Removed beta checking feature on non beta releases.
-* Prevent closing the save dialog if the preferences dialog is still open.">
+* Prevent closing the save dialog if the preferences dialog is still open.
+* Memorize the preferences window size if the user make it bigger. It will use the default size if the window is shortened.">
<!ENTITY about.version.102 "+ Добавлена опция выбора действия для автоматического сохранения.
+ Если установлено расширение DownThemAll!, доступны новые опции для настройки взаимодействия с ним.
diff --git a/locale/sv-SE/about.dtd b/locale/sv-SE/about.dtd
index d9dad77..7aae11a 100644
--- a/locale/sv-SE/about.dtd
+++ b/locale/sv-SE/about.dtd
@@ -24,8 +24,10 @@
<!-- Keep the newline intact as it uses the < pre > tag, keep the 2 beginning spaces to create indentation -->
<!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+ users when no filter match.
- Removed beta checking feature on non beta releases.
-* Prevent closing the save dialog if the preferences dialog is still open.">
+* Prevent closing the save dialog if the preferences dialog is still open.
+* Memorize the preferences window size if the user make it bigger. It will use the default size if the window is shortened.">
<!ENTITY about.version.102 "+ Lade till ett alternativ att tvinga åtgärdsvalet när det automatiska nerladdningsalternativet används.
+ Om tillägget DownThemAll! är installerat blir en ny alternativflik tillgänglig för att kunna skicka ASF:s målsökväg till dTa!.
--
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