open popup menu in share dialog only for one sharee on render
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
1887fd32f1
commit
1965617a2f
1 changed files with 7 additions and 3 deletions
|
@ -284,9 +284,13 @@
|
|||
this.$('.popovermenu').on('afterHide', function() {
|
||||
_this._menuOpen = false;
|
||||
});
|
||||
if (this._menuOpen) {
|
||||
if (this._menuOpen != false) {
|
||||
// Open menu again if it was opened before
|
||||
OC.showMenu(null, this.$('.popovermenu'));
|
||||
var shareId = parseInt(this._menuOpen, 10);
|
||||
if(!_.isNaN(shareId)) {
|
||||
var liSelector = 'li[data-share-id=' + shareId + ']';
|
||||
OC.showMenu(null, this.$(liSelector + ' .popovermenu'));
|
||||
}
|
||||
}
|
||||
|
||||
this.delegateEvents();
|
||||
|
@ -344,7 +348,7 @@
|
|||
var $menu = $li.find('.popovermenu');
|
||||
|
||||
OC.showMenu(null, $menu);
|
||||
this._menuOpen = true;
|
||||
this._menuOpen = $li.data('share-id');
|
||||
},
|
||||
|
||||
onPermissionChange: function(event) {
|
||||
|
|
Loading…
Reference in a new issue