Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/options.xul

Issue 8478020: Slight improvements to URL Fixer code (Closed)
Patch Set: Created Oct. 1, 2012, 4:03 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 2
3 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
4 - License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 - License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 - You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 - You can obtain one at http://mozilla.org/MPL/2.0/. -->
6 6
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://url-fixer/skin/options.css" type="text/css"?> 8 <?xml-stylesheet href="chrome://url-fixer/skin/options.css" type="text/css"?>
9 <!DOCTYPE prefwindow SYSTEM "chrome://url-fixer/locale/options.dtd"> 9 <!DOCTYPE prefwindow SYSTEM "chrome://url-fixer/locale/options.dtd">
10 <dialog 10 <dialog
(...skipping 23 matching lines...) Expand all
34 <listcols> 34 <listcols>
35 <listcol flex="1" /> 35 <listcol flex="1" />
36 </listcols> 36 </listcols>
37 </listbox> 37 </listbox>
38 <hbox> 38 <hbox>
39 <button flex="1" label="&urlfixer.options.removeButtonLabel;" onclic k="removeRule(this,'whitelist');" disabled="true" id="whitelist_remove-button" _ list="whitelist" /> 39 <button flex="1" label="&urlfixer.options.removeButtonLabel;" onclic k="removeRule(this,'whitelist');" disabled="true" id="whitelist_remove-button" _ list="whitelist" />
40 </hbox> 40 </hbox>
41 </tabpanel> 41 </tabpanel>
42 <tabpanel orient="vertical"> 42 <tabpanel orient="vertical">
43 <hbox> 43 <hbox>
44 <textbox id="find" flex="1" oninput="onFindChange();" onkeypress="if (event.keyCode == 13) { addRule();event.preventDefault(); }" /> 44 <textbox id="find" flex="1" oninput="onFindChange();" onkeypress="if (event.keyCode == event.DOM_VK_RETURN) { addRule();event.preventDefault(); }" / >
45 <textbox id="replace" flex="1" onkeypress="if (event.keyCode == 13) { addRule();event.preventDefault(); }" /> 45 <textbox id="replace" flex="1" onkeypress="if (event.keyCode == even t.DOM_VK_RETURN) { addRule();event.preventDefault(); }" />
46 </hbox> 46 </hbox>
47 <hbox> 47 <hbox>
48 <button flex="1" label="&urlfixer.options.addButtonLabel;" oncommand ="addRule();" id="add-button" disabled="true" /> 48 <button flex="1" label="&urlfixer.options.addButtonLabel;" oncommand ="addRule();" id="add-button" disabled="true" />
49 </hbox> 49 </hbox>
50 <description id="custom_corrections-explanation">&urlfixer.options.reg ularExpressionExplanation;</description> 50 <description id="custom_corrections-explanation">&urlfixer.options.reg ularExpressionExplanation;</description>
51 <listbox id="custom_corrections" flex="1" seltype="multiple" onselect= "onItemSelected(this);" _removeButton="custom_corrections_remove-button" _emptyL abel="&urlfixer.options.findAndReplaceEmptyLabel;"> 51 <listbox id="custom_corrections" flex="1" seltype="multiple" onselect= "onItemSelected(this);" _removeButton="custom_corrections_remove-button" _emptyL abel="&urlfixer.options.findAndReplaceEmptyLabel;">
52 <listhead> 52 <listhead>
53 <listheader label="&urlfixer.options.findLabel;"/> 53 <listheader label="&urlfixer.options.findLabel;"/>
54 <listheader label="&urlfixer.options.replaceLabel;"/> 54 <listheader label="&urlfixer.options.replaceLabel;"/>
55 </listhead> 55 </listhead>
56 <listcols> 56 <listcols>
57 <listcol flex="1" /> 57 <listcol flex="1" />
58 <listcol flex="1" /> 58 <listcol flex="1" />
59 </listcols> 59 </listcols>
60 </listbox> 60 </listbox>
61 <hbox> 61 <hbox>
62 <button flex="1" label="&urlfixer.options.removeButtonLabel;" onclic k="removeRule(this,'custom_replace');" disabled="true" id="custom_corrections_re move-button" _list="custom_corrections" /> 62 <button flex="1" label="&urlfixer.options.removeButtonLabel;" onclic k="removeRule(this,'custom_replace');" disabled="true" id="custom_corrections_re move-button" _list="custom_corrections" />
63 </hbox> 63 </hbox>
64 </tabpanel> 64 </tabpanel>
65 </tabpanels> 65 </tabpanels>
66 </tabbox> 66 </tabbox>
67 </groupbox> 67 </groupbox>
68 </dialog> 68 </dialog>
OLDNEW
« no previous file with comments | « chrome/content/options.js ('k') | lib/typoFixer.js » ('j') | lib/typoFixer.js » ('J')

Powered by Google App Engine
This is Rietveld