No judgment

Change-Id: I5f449f07d5e7c11c9f18b23c4f86be4558d355cd
This commit is contained in:
cuizhengcheng 2018-12-04 20:06:55 +08:00
parent abd52ce1b7
commit 8d0c629d95
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ horizon.horizon_mellanox = {
'</form>' ;
var $frame = $('#neo_iframe');
setTimeout( function() {
var doc = $frame[0].contentWindow.document;
if ($frame[0] && $frame[0].contentWindow)
{
var doc = $frame[0].contentWindow.document;
};
var $body = $('body', doc);
$body.html(form_html);
$body.find('#username').val(user);