mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Fixed issue when editing on frontend and loading media picker (fixes #2102)
This commit is contained in:
@@ -44,10 +44,15 @@ var Menu = new prime({
|
||||
|
||||
this.selectors = this.options.selectors;
|
||||
this.states = this.options.states;
|
||||
this.overlay = zen('div' + this.selectors.overlay).top('#g-page-surround');
|
||||
this.overlay = zen('div' + this.selectors.overlay);
|
||||
this.active = null;
|
||||
this.location = [];
|
||||
|
||||
var pageSurround = $('#g-page-surround');
|
||||
if (pageSurround) {
|
||||
this.overlay.top(pageSurround);
|
||||
}
|
||||
|
||||
var mainContainer = $(this.selectors.mainContainer);
|
||||
if (!mainContainer) { return; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user