mirror of
https://github.com/wekan/wekan.git
synced 2025-12-29 05:38:48 +01:00
Updated mobile Bookmarks/Starred boards. Part 1. In Progress.
Thanks to xet7 !
This commit is contained in:
parent
f3efaf59e1
commit
da98942cce
9 changed files with 210 additions and 5 deletions
|
|
@ -104,6 +104,9 @@ Template.header.events({
|
|||
const currentMode = Utils.getMobileMode();
|
||||
Utils.setMobileMode(!currentMode);
|
||||
},
|
||||
'click .js-open-bookmarks'(evt) {
|
||||
// Already added but ensure single definition -- safe guard
|
||||
},
|
||||
'click .js-close-announcement'() {
|
||||
$('.announcement').hide();
|
||||
},
|
||||
|
|
@ -124,6 +127,14 @@ Template.header.events({
|
|||
location.reload();
|
||||
}
|
||||
},
|
||||
'click .js-open-bookmarks'(evt) {
|
||||
// Desktop: open popup, Mobile: route to page
|
||||
if (Utils.isMiniScreen()) {
|
||||
FlowRouter.go('bookmarks');
|
||||
} else {
|
||||
Popup.open('bookmarksPopup')(evt);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Template.offlineWarning.events({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue