From 0065dc23b00c5039ec3036ff895b9a67341c05c0 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 12 Oct 2009 10:53:53 +0000 Subject: Naming changes and final fix to up/down buttons git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@265 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/code/settings.xul.js | 4 +++- chrome/content/ui/settings.xul | 43 +++++++++++++++++++++---------------- 2 files changed, 28 insertions(+), 19 deletions(-) (limited to 'chrome/content') diff --git a/chrome/content/code/settings.xul.js b/chrome/content/code/settings.xul.js index 6fdcca3..80fa8a4 100644 --- a/chrome/content/code/settings.xul.js +++ b/chrome/content/code/settings.xul.js @@ -4,7 +4,7 @@ var Redirector = Components.classes["@einaregilsson.com/redirector;1"].getServic const Cc = Components.classes; const Ci = Components.interfaces; -var RedirectList = { +var Settings = { lstRedirects: null, btnDelete : null, @@ -135,6 +135,7 @@ var RedirectList = { if (args.saved) { this.addItemsToListBox([args.redirect]); Redirector.addRedirect(args.redirect); + this.selectionChange(); } }, @@ -156,6 +157,7 @@ var RedirectList = { redirect.copyValues(args.redirect); this.setListItemValues(listItem, redirect); Redirector.save(); + this.selectionChange(); } }, diff --git a/chrome/content/ui/settings.xul b/chrome/content/ui/settings.xul index 641df8c..7004d48 100644 --- a/chrome/content/ui/settings.xul +++ b/chrome/content/ui/settings.xul @@ -6,8 +6,8 @@ - - + + @@ -57,11 +57,11 @@ -