Fix iframeWindow.submitDialogForm is not a function, line:4, :http://app.wisemapping.com/c/maps/163/edit

null
This commit is contained in:
Paulo Gustavo Veiga 2012-08-28 08:41:49 -03:00
parent 878a040708
commit a442c487e4

View File

@ -15,7 +15,7 @@
<script type="text/javascript">
$('submitBtn').addEvent('click', function () {
var iframeWindow = $('dialogContentIframe').contentWindow;
if (iframeWindow) {
if (iframeWindow && (typeof iframeWindow.submitDialogForm == 'function')) {
var delay = iframeWindow.submitDialogForm();
if (MooDialog.Request.active) {
if (!delay) {