Make sure admin iframe is there before trying to redirect it, fixes error blocking close of unviewed Admin tab

This commit is contained in:
Nathan Gray 2014-02-03 16:27:17 +00:00
parent 0c5ed3aefd
commit f049892993

View File

@ -118,7 +118,7 @@ app.classes.admin = AppJS.extend(
linkHandler: function(_url) linkHandler: function(_url)
{ {
var matches; var matches;
if (!_url.match('menuaction=admin.admin_ui.index') || if (this.iframe != null && !_url.match('menuaction=admin.admin_ui.index') ||
(matches = _url.match(/menuaction=admin.admin_ui.index.*&load=([^&]+)/))) (matches = _url.match(/menuaction=admin.admin_ui.index.*&load=([^&]+)/)))
{ {
if (matches) if (matches)