summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/preferences/main.xul
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-09-03 21:15:53 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-09-03 21:15:53 +0300
commit5359706e7ab5d164748786aa2fd040eca52ed5f3 (patch)
treeb4d10934ba7b03c12d1b8dcbf44125e56d9a5ff5 /application/palemoon/components/preferences/main.xul
parent2e00eb87ef299e6eb7521670e6a6720fee19f5fc (diff)
downloadUXP-5359706e7ab5d164748786aa2fd040eca52ed5f3.tar
UXP-5359706e7ab5d164748786aa2fd040eca52ed5f3.tar.gz
UXP-5359706e7ab5d164748786aa2fd040eca52ed5f3.tar.lz
UXP-5359706e7ab5d164748786aa2fd040eca52ed5f3.tar.xz
UXP-5359706e7ab5d164748786aa2fd040eca52ed5f3.zip
Update 'browser.newtab.url' when it's used for new tabs and 'browser.startup.homepage' changes
Diffstat (limited to 'application/palemoon/components/preferences/main.xul')
-rw-r--r--application/palemoon/components/preferences/main.xul7
1 files changed, 4 insertions, 3 deletions
diff --git a/application/palemoon/components/preferences/main.xul b/application/palemoon/components/preferences/main.xul
index 7634056eb..bb51947b0 100644
--- a/application/palemoon/components/preferences/main.xul
+++ b/application/palemoon/components/preferences/main.xul
@@ -96,6 +96,7 @@
type="autocomplete" autocompletesearch="history"
onsyncfrompreference="return gMainPane.syncFromHomePref();"
onsynctopreference="return gMainPane.syncToHomePref(this.value);"
+ oninput="gNewtabUrl.writeNewtabUrl(null, this.value);"
placeholder="&abouthome.pageTitle;"
preference="browser.startup.homepage"/>
</hbox>
@@ -103,15 +104,15 @@
<button label="" accesskey="&useCurrentPage.accesskey;"
label1="&useCurrentPage.label;"
label2="&useMultiple.label;"
- oncommand="gMainPane.setHomePageToCurrent();"
+ oncommand="gMainPane.setHomePageToCurrent(); gNewtabUrl.writeNewtabUrl();"
id="useCurrent"
preference="pref.browser.homepage.disable_button.current_page"/>
<button label="&chooseBookmark.label;" accesskey="&chooseBookmark.accesskey;"
- oncommand="gMainPane.setHomePageToBookmark();"
+ oncommand="gMainPane.setHomePageToBookmark(); gNewtabUrl.writeNewtabUrl();"
id="useBookmark"
preference="pref.browser.homepage.disable_button.bookmark_page"/>
<button label="&restoreDefault.label;" accesskey="&restoreDefault.accesskey;"
- oncommand="gMainPane.restoreDefaultHomePage();"
+ oncommand="gMainPane.restoreDefaultHomePage(); gNewtabUrl.writeNewtabUrl();"
id="restoreDefaultHomePage"
preference="pref.browser.homepage.disable_button.restore_default"/>
</hbox>