diff --git a/admin/templates/js/main.js b/admin/templates/js/main.js index 340a105..8f72032 100644 --- a/admin/templates/js/main.js +++ b/admin/templates/js/main.js @@ -89,6 +89,7 @@ function openLinkWindow(target, doc, document_alias) { } function openFileWindow(id, type, target) { + if (typeof target === 'undefined' || target === null || target === '') {target = id;} if (typeof width == 'undefined' || width == '') var width = screen.width * 0.6; if (typeof height == 'undefined' || height == '') var height = screen.height * 0.6; if (typeof doc == 'undefined') var doc = 'Title';