Fixed breadcrumb menu flashing
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
77927442a6
commit
d78026c3b4
|
@ -115,7 +115,7 @@
|
||||||
*/
|
*/
|
||||||
render: function() {
|
render: function() {
|
||||||
// Menu is destroyed on every change, we need to init it
|
// Menu is destroyed on every change, we need to init it
|
||||||
OC.unregisterMenu($('.crumbmenu'), $('.crumbmenu > .popovermenu'));
|
OC.unregisterMenu($('.crumbmenu > .icon-more'), $('.crumbmenu > .popovermenu'));
|
||||||
|
|
||||||
var parts = this._makeCrumbs(this.dir || '/');
|
var parts = this._makeCrumbs(this.dir || '/');
|
||||||
var $crumb;
|
var $crumb;
|
||||||
|
@ -195,7 +195,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Menu is destroyed on every change, we need to init it
|
// Menu is destroyed on every change, we need to init it
|
||||||
OC.registerMenu($('.crumbmenu'), $('.crumbmenu > .popovermenu'));
|
OC.registerMenu($('.crumbmenu > .icon-more'), $('.crumbmenu > .popovermenu'));
|
||||||
|
|
||||||
this._resize();
|
this._resize();
|
||||||
},
|
},
|
||||||
|
@ -218,7 +218,7 @@
|
||||||
// menu part
|
// menu part
|
||||||
crumbs.push({
|
crumbs.push({
|
||||||
class: 'crumbmenu hidden',
|
class: 'crumbmenu hidden',
|
||||||
linkclass: 'icon-more'
|
linkclass: 'icon-more menutoggle'
|
||||||
});
|
});
|
||||||
// root part
|
// root part
|
||||||
crumbs.push({
|
crumbs.push({
|
||||||
|
|
Loading…
Reference in New Issue