[Pkg-mozext-commits] [automatic-save-folder] 31/133: Fix : When using instantApply, the "active" column status wasn't saved.

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 ee69a921f5d8f07235d92ed5d9cdefa44a3baf80
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date:   Sat Nov 14 15:22:30 2009 +0000

    Fix : When using instantApply, the "active" column status wasn't saved.
    
    git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@31 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
 content/asf.js      | 11 +++++++++++
 content/options.xul |  1 +
 2 files changed, 12 insertions(+)

diff --git a/content/asf.js b/content/asf.js
index af816d2..7c84a2d 100644
--- a/content/asf.js
+++ b/content/asf.js
@@ -116,6 +116,17 @@ var automatic_save_folder = {
 		}
 	},
 	
+	save_active_state: function() {
+		//autosave the filterswhen clicking  (anywhere) on the filter tree
+		// can't detect the "active" column statut with setting an attribute. The event is set to the tree not the cell.
+		var instantApply = this.prefManager.getBoolPref("browser.preferences.instantApply");
+		if (instantApply)
+		{
+			//save the filters
+			this.asf_savefilters();
+		}
+	},
+	
 	
 	// Called whenever a list box is selected
 	asf_treeSelected: function () {
diff --git a/content/options.xul b/content/options.xul
index de1833f..0a186f7 100644
--- a/content/options.xul
+++ b/content/options.xul
@@ -97,6 +97,7 @@
 					ondragstart="automatic_save_folder.dragstart(event)"
 					ondragover="automatic_save_folder.dragover(event)"
 					ondragexit="automatic_save_folder.dragdrop(event)"
+					onclick="automatic_save_folder.save_active_state()"
 					id="asf-filterChilds" context="contextpopup" ondblclick="event.preventDefault();window.openDialog('chrome://asf/content/edit.xul','asf_addedit','chrome, centerscreen, resizable=no, dialog=no, modal=yes');"/>
 				</tree>
 				<vbox>

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