diff --git a/etemplate/js/expose.js b/etemplate/js/expose.js index 331d21af3a..f5823b345d 100644 --- a/etemplate/js/expose.js +++ b/etemplate/js/expose.js @@ -73,7 +73,10 @@ function expose (widget) } } // No nextmatch, or nextmatch not quite ready - if(nextmatch == null || nextmatch.controller == null) return null; + // At the moment only filemanger nm would work + // as gallery, thus we disable other nestmatches + // to build up gallery but filemanager + if(nextmatch == null || nextmatch.controller == null || !nextmatch.dom_id.match(/filemanager/,'ig')) return null; return nextmatch; };