diff options
author | Einar Egilsson | 2009-10-07 12:54:34 +0000 |
---|---|---|
committer | Einar Egilsson | 2009-10-07 12:54:34 +0000 |
commit | 756a6c22bbed654423bb4976e95968cff4fee49d (patch) | |
tree | 77b370f482939d2bc5e87e958db778dba5ebbf17 /chrome/content/ui | |
parent | eb5ee94ad622ac89b886cc74fcb8cd8328b1fbaf (diff) |
Prompt before delete, disable edit and delete buttons properly. Use checkboxes for setting enabled/disabled status of redirects.
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@255 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/ui')
-rw-r--r-- | chrome/content/ui/editRedirect.xul | 5 | ||||
-rw-r--r-- | chrome/content/ui/redirectList.xul | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/chrome/content/ui/editRedirect.xul b/chrome/content/ui/editRedirect.xul index 103d1b5..22d4a8d 100644 --- a/chrome/content/ui/editRedirect.xul +++ b/chrome/content/ui/editRedirect.xul @@ -47,7 +47,10 @@ </row>
<row align="center">
<text value="&chkUnescapeMatches.label;" />
- <checkbox id="chkUnescapeMatches" label="" taborder="7"/>
+ <hbox>
+ <checkbox id="chkUnescapeMatches" label="" taborder="7"/>
+ <spacer flex="1" />
+ </hbox>
</row>
</rows>
</grid>
diff --git a/chrome/content/ui/redirectList.xul b/chrome/content/ui/redirectList.xul index 643a699..8317b15 100644 --- a/chrome/content/ui/redirectList.xul +++ b/chrome/content/ui/redirectList.xul @@ -6,8 +6,8 @@ orient="vertical"
onload="RedirectList.onLoad();"
buttons="accept"
- width="600px"
- height="400px"
+ width="650px"
+ height="500px"
windowtype="redirectorSettings"
xmlns:nc="http://home.netscape.com/NC-rdf#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
@@ -19,7 +19,7 @@ </stringbundleset>
<vbox>
- <richlistbox seltype="single" id="lstRedirects" style="margin-bottom:5px; border:solid 1px grey;" height="330px" ondblclick="RedirectList.editRedirect();" onselect="RedirectList.selectionChange();">
+ <richlistbox seltype="single" id="lstRedirects" style="margin-bottom:5px; border:solid 1px grey;" height="430px" ondblclick="RedirectList.editRedirect();" onselect="RedirectList.selectionChange();">
<richlistitem style="border-bottom:dotted 1px grey;" selected="false">
<grid>
<cols>
@@ -37,6 +37,10 @@ <label style="font-weight:bold;" value="&colRedirectTo.label;:" />
<description name="dscrRedirectTo" />
</row>
+ <row>
+ <label style="font-weight:bold;" value="&colEnabled.label;:" />
+ <hbox><checkbox checked="false" name="chkEnabled" label="" /> <spacer flex="1"/></hbox>
+ </row>
</rows>
</grid>
</richlistitem>
@@ -45,7 +49,6 @@ <button id="btnAdd" onclick="RedirectList.addRedirect();" label="&btnAdd.label;" disabled="false" />
<button id="btnEdit" onclick="RedirectList.editRedirect();" label="&btnEdit.label;" disabled="true" />
<button id="btnDelete" onclick="RedirectList.deleteRedirect();" label="&btnDelete.label;" disabled="true" />
- <button id="btnDisable" onclick="RedirectList.toggleDisabled();" label="&btnDisable.label;" disabled="true" />
<button id="btnImport" onclick="RedirectList.import();" label="&btnImport.label;"/>
<button id="btnExport" onclick="RedirectList.export();" label="&btnExport.label;"/>
<button id="btnHelp" onclick="RedirectList.openHelp();" label="&btnHelp.label;"/>
|