mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 07:17:30 +09:00
Add back the Quickdial show/hide control.
This also slightly tweaks the grid design styling. Resolves #563
This commit is contained in:
parent
64534aadb8
commit
3b3e4b4cc5
4 changed files with 25 additions and 3 deletions
|
|
@ -21,6 +21,10 @@ var gPage = {
|
|||
|
||||
// Listen for 'unload' to unregister this page.
|
||||
addEventListener("unload", this, false);
|
||||
|
||||
// Listen for toggle button clicks.
|
||||
let button = document.getElementById("newtab-toggle");
|
||||
button.addEventListener("click", e => this.toggleEnabled(e));
|
||||
|
||||
// XXX bug 991111 - Not all click events are correctly triggered when
|
||||
// listening from xhtml nodes -- in particular middle clicks on sites, so
|
||||
|
|
@ -277,6 +281,11 @@ var gPage = {
|
|||
}
|
||||
},
|
||||
|
||||
toggleEnabled: function(aEvent) {
|
||||
gAllPages.enabled = !gAllPages.enabled;
|
||||
event.stopPropagation();
|
||||
},
|
||||
|
||||
maybeShowAutoMigrationUndoNotification() {
|
||||
// sendAsyncMessage("NewTab:MaybeShowAutoMigrationUndoNotification");
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue