Build expose gallery only for filemanager nm, other nms may have expose view but not neccessary would be a gallery (eg. resources)

This commit is contained in:
Hadi Nategh 2015-02-24 17:45:57 +00:00
parent cabb2c2fb0
commit 73dfdc4cf4

View File

@ -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;
};