[Pkg-mozext-commits] [automatic-save-folder] 52/133: Fix : - Nested box visibility doesn't work on Linux (hiding parent group with visible children doesn't hide children) - Drop-down menu in add&edit window didn't work on Linux with onLoad command.

David Prévot taffit at moszumanska.debian.org
Mon Apr 27 20:33:51 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 25320e67bbca1ace6c97140e53cd64c4f41899e8
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date:   Sun Jan 31 19:46:38 2010 +0000

    Fix :
    - Nested box visibility doesn't work on Linux (hiding parent group with
      visible children doesn't hide children)
    - Drop-down menu in add&edit window didn't work on Linux with onLoad command.
    
    git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@52 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
 content/add.xul         |  2 +-
 content/asf_addedit.js  |  2 ++
 content/asf_download.js | 13 +++++++++++++
 content/edit.xul        |  2 +-
 4 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/content/add.xul b/content/add.xul
index f67c33d..b115bd0 100644
--- a/content/add.xul
+++ b/content/add.xul
@@ -48,7 +48,7 @@
 		
 		<description value="&asf.addedit.folder.label;"/>
 		<hbox>
-			<menulist editable="true" id="asf-addedit-folder" readonly="true" width="240" onload="automatic_save_folder.read_all_filterpath()" ondblclick="automatic_save_folder.browsedir_addedit()"/>
+			<menulist editable="true" id="asf-addedit-folder" readonly="true" width="240" ondblclick="automatic_save_folder.browsedir_addedit()"></menulist>
 			<button id="asf-addedit-select-folder" label="&asf.selectfolder.label;" oncommand="automatic_save_folder.browsedir_addedit()"/>
 		</hbox>
 		
diff --git a/content/asf_addedit.js b/content/asf_addedit.js
index 210ea47..81bc355 100644
--- a/content/asf_addedit.js
+++ b/content/asf_addedit.js
@@ -78,6 +78,7 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
 		sizeToContent();
 		this.asf_toggleradio_domain();
 		this.asf_toggleradio_filename();
+		this.read_all_filterpath();
 	},
 
 
@@ -86,6 +87,7 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
 		this.asf_loadData();
 		this.asf_toggleradio_domain();
 		this.asf_toggleradio_filename();
+		this.read_all_filterpath();
 	},
 
 
diff --git a/content/asf_download.js b/content/asf_download.js
index 15ebf6a..5021ed7 100644
--- a/content/asf_download.js
+++ b/content/asf_download.js
@@ -699,7 +699,13 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
 	
 	toggle_dloptionsContent: function(){
 		var asf_dloptions_content = document.getElementById('asf_dloptions_content').style.visibility;
+		var asf_viewpathselect = this.prefManager.getBoolPref("extensions.asf.viewpathselect");
+		
 		document.getElementById('asf_dloptions_content').style.visibility = (asf_dloptions_content == "visible" ? "collapse" : "visible");
+		if (asf_viewpathselect) // fix for linux (nested box visibility doesn't work)
+		{
+			document.getElementById('asf_radiogroup_pathselect').style.visibility = (asf_dloptions_content == "visible" ? "collapse" : "visible");
+		}
 		window.sizeToContent();
 	},
 	
@@ -712,6 +718,7 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
 		var asf_folder_list = document.getElementById('asf_folder_list');
 		var asf_viewdloption = this.prefManager.getBoolPref("extensions.asf.viewdloption");
 		var asf_viewdloptionType = this.prefManager.getIntPref("extensions.asf.viewdloptionType");
+		var asf_viewpathselect = this.prefManager.getBoolPref("extensions.asf.viewpathselect");
 		
 		// Workaround for bug 439323 (if call when not needed, dosen't work anymore)
 		// https://bugzilla.mozilla.org/show_bug.cgi?id=439323
@@ -728,6 +735,10 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
 				{
 					document.getElementById('asf_dloptions').style.visibility = "visible";
 					document.getElementById('asf_dloptions_content').style.visibility = "visible";
+					if (asf_viewpathselect) // fix for linux (nested box visibility doesn't work)
+					{
+						document.getElementById('asf_radiogroup_pathselect').style.visibility = "visible";
+					}
 				}
 			}
 			else
@@ -739,11 +750,13 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
 				{
 					document.getElementById('asf_dloptions').style.visibility = "visible";
 					document.getElementById('asf_dloptions_content').style.visibility = "collapse";
+					document.getElementById('asf_radiogroup_pathselect').style.visibility = "collapse"; // fix for linux (nested box visibility doesn't work)
 				}
 				if (asf_viewdloptionType == 3)
 				{
 					document.getElementById('asf_dloptions').style.visibility = "collapse";
 					document.getElementById('asf_dloptions_content').style.visibility = "collapse";
+					document.getElementById('asf_radiogroup_pathselect').style.visibility = "collapse"; // fix for linux (nested box visibility doesn't work)
 				}
 			}
 			
diff --git a/content/edit.xul b/content/edit.xul
index fd564b7..70c681b 100644
--- a/content/edit.xul
+++ b/content/edit.xul
@@ -48,7 +48,7 @@
 
 		<description value="&asf.addedit.folder.label;"/>		
 		<hbox>
-			<menulist editable="true" id="asf-addedit-folder" readonly="true" width="240" onload="automatic_save_folder.read_all_filterpath()" ondblclick="automatic_save_folder.browsedir_addedit()"/>
+			<menulist editable="true" id="asf-addedit-folder" readonly="true" width="240" ondblclick="automatic_save_folder.browsedir_addedit()"/>
 			<button id="asf-addedit-select-folder" label="&asf.selectfolder.label;" oncommand="automatic_save_folder.browsedir_addedit()"/>
 		</hbox>
 		

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