give focus explicitly to loleafletframe after loading

This is mainly problem in firefox where sometime, key press
events are handled by the browser, but we do not want that.
pull/1/head
Pranav Kant 8 years ago
parent 7dd4a8c58d
commit 04a3bacb4d

@ -254,7 +254,7 @@ var documentsMain = {
'<input name="access_token" value="' + access_token + '" type="hidden"/></form>';
// iframe that contains the Collabora Online
var frame = '<iframe id="loleafletframe" name= "loleafletframe" allowfullscreen style="width:100%;height:100%;position:absolute;"/>';
var frame = '<iframe id="loleafletframe" name= "loleafletframe" allowfullscreen style="width:100%;height:100%;position:absolute;" onload="this.contentWindow.focus()"/>';
$('#mainContainer').append(form);
$('#mainContainer').append(frame);

Loading…
Cancel
Save