mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
created the home button to go back to the main page when done with current pad, also tried to make a test
This commit is contained in:
parent
1e5b302a79
commit
60e19bc281
9 changed files with 69 additions and 0 deletions
|
@ -387,6 +387,11 @@ exports.padeditbar = new class {
|
|||
$('#myusernameedit').trigger('focus');
|
||||
});
|
||||
|
||||
this.registerCommand('gohome', () => {
|
||||
console.log('Go Home button clicked');
|
||||
window.location.href = '/';
|
||||
});
|
||||
|
||||
this.registerCommand('embed', () => {
|
||||
this.setEmbedLinks();
|
||||
this.toggleDropDown('embed');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue