Fixed issue when editing on frontend and loading media picker (fixes #2102)

This commit is contained in:
Djamil Legato
2017-09-19 16:48:54 -07:00
parent 3cd9636a35
commit db91dea362
3 changed files with 14 additions and 2 deletions
+6 -1
View File
@@ -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; }