mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Merge pull request 'fix/fix-bugs' (#334) from fix/fix-bugs into hotfix/v9.0.1
This commit is contained in:
@ -790,6 +790,7 @@ li.menu-item {
|
||||
padding: 12px 16px 0; // 16px inner + outer 32px
|
||||
overflow-x: auto;
|
||||
min-height: 184px;
|
||||
overflow-y: hidden;
|
||||
|
||||
@media(max-width: 1280px) {
|
||||
padding-right: 48px;
|
||||
|
||||
@ -327,9 +327,10 @@
|
||||
}
|
||||
};
|
||||
|
||||
function addContextMenuEventListener(collection, model, view) {
|
||||
function addContextMenuEventListener(collection, model, view, actionList) {
|
||||
$(`#${model.uid}-more-btn`, view).click((e) => {
|
||||
e.stopPropagation();
|
||||
ppmenu.actionlist = actionList;
|
||||
ppmenu.showUnderElem(e.currentTarget, model, $('body').hasClass('rtl') ? 'left' : 'right');
|
||||
})
|
||||
}
|
||||
@ -352,7 +353,7 @@
|
||||
|
||||
collection.list.append($item);
|
||||
|
||||
addContextMenuEventListener(collection, model, this.view.$panel);
|
||||
addContextMenuEventListener(collection, model, this.view.$panel, 'recent');
|
||||
|
||||
collection.list.parent().removeClass('empty');
|
||||
});
|
||||
@ -387,7 +388,7 @@
|
||||
});
|
||||
collectionRecovers.events.inserted.attach((collection, model)=>{
|
||||
collection.list.append( this.view.listitemtemplate(model) );
|
||||
addContextMenuEventListener(collection, model, this.view.$panel);
|
||||
addContextMenuEventListener(collection, model, this.view.$panel, 'recovery');
|
||||
});
|
||||
collectionRecovers.events.click.attach((collection, model)=>{
|
||||
openFile(OPEN_FILE_RECOVERY, model);
|
||||
|
||||
Reference in New Issue
Block a user