summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/preferences/main.xul
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-09-05 19:27:56 +0200
committerGitHub <noreply@github.com>2018-09-05 19:27:56 +0200
commit6c4be625921e2974ea230817f882f1a36f55b688 (patch)
tree00fe7ada961301bd6fba14ef7b8edefaad127c38 /application/palemoon/components/preferences/main.xul
parentddaf09fa2c10eec97c9ce996d5c5ad4879b6cbcd (diff)
parentfa764a68de13dcdaf863a1fdf7bc86c1856bb792 (diff)
downloadUXP-6c4be625921e2974ea230817f882f1a36f55b688.tar
UXP-6c4be625921e2974ea230817f882f1a36f55b688.tar.gz
UXP-6c4be625921e2974ea230817f882f1a36f55b688.tar.lz
UXP-6c4be625921e2974ea230817f882f1a36f55b688.tar.xz
UXP-6c4be625921e2974ea230817f882f1a36f55b688.zip
Merge pull request #747 from JustOff/PR_NewtabUrl
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>