зеркало из https://github.com/mozilla/gecko-dev.git
fix signature chooser and mail homepage chooser to use the file picker just exposed from prefutilities.js, for #27630, r=sspitzer
This commit is contained in:
Родитель
45b74a09a8
Коммит
644b47bdf5
|
@ -11,6 +11,8 @@
|
|||
onload="parent.onPanelLoaded('am-main.xul');"
|
||||
align="vertical">
|
||||
|
||||
<html:script src="chrome://global/content/strres.js"/>
|
||||
<html:script src="chrome://pref/content/prefutilities.js"/>
|
||||
<box class="header" align="horizontal">
|
||||
<titledbutton class="left-header-text" value="&accountTitle.label;"/>
|
||||
<spring class="header-spring" flex="1"/>
|
||||
|
@ -69,7 +71,7 @@
|
|||
<html:input name="identity.attachSignature" id="identity.attachSignature" type="checkbox"/>
|
||||
<html:label for="identity.attachSignature">&signature.label;</html:label>
|
||||
<html:input type="text" id="identity.signature" datatype="nsIFileSpec" flex="100%" name="identity.signature"/>
|
||||
<titledbutton class="dialog push" name="browse" type="button" value="&choose.label;" onclick="PrefNavSelectFile('identity.signature')"/>
|
||||
<titledbutton class="dialog push" name="browse" type="button" value="&choose.label;" onclick="prefNavSelectFile('identity.signature', 'choosefile')"/>
|
||||
</html:div>
|
||||
|
||||
<!--
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
class="dialog"
|
||||
onload="if (parent.handle) parent.handle.onpageload('pref-mailnews'); else parent.queuedTag='pref-mailnews';"
|
||||
align="vertical">
|
||||
|
||||
<html:script language="javascript" src="chrome://global/content/strres.js"/>
|
||||
<html:script language="javascript" src="chrome://pref/content/prefutilities.js"/>
|
||||
<html:script language="javascript" src="chrome://messenger/content/pref-mailnews.js"/>
|
||||
|
||||
<box class="header" align="horizontal">
|
||||
|
@ -116,10 +117,10 @@
|
|||
</html:div>
|
||||
<box align="horizontal">
|
||||
<titledbutton class="dialog push" name="starts" type="button"
|
||||
value="&useCurrent;" onclick="SetPrefToCurrentPage('mailnews.start_page.url');" />
|
||||
value="&useCurrent;" onclick="setHomePageToCurrentPage('mailnews.start_page.url');" />
|
||||
|
||||
<titledbutton class="dialog push" name="browse" type="button"
|
||||
value="&browseFile;" onclick="PrefNavSelectFile('mailnews.start_page.url')"/>
|
||||
value="&browseFile;" onclick="prefNavSelectFile('mailnews.start_page.url', 'choosehomepage')"/>
|
||||
</box>
|
||||
|
||||
</titledbox>
|
||||
|
|
Загрузка…
Ссылка в новой задаче