Fixed the iframe problems

This commit is contained in:
Peter 'Pita' Martischka 2011-07-27 15:11:30 +01:00
parent f4e04be9da
commit 115f7d6b51
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ function makeCSSManager(emptyStylesheetTitle, top)
function getSheetByTitle(title, top)
{
if(top)
var allSheets = window.top.document.styleSheets;
var allSheets = window.parent.parent.document.styleSheets;
else
var allSheets = document.styleSheets;

View File

@ -101,13 +101,13 @@ var padeditbar = (function()
else if (cmd == 'embed')
{
var padurl = document.location;
$('#embedinput').val("<iframe src='" + padurl + "' width=500 height=400>");
$('#embedinput').val("<iframe src='" + padurl + "' width=600 height=400>");
self.toogleDropDown("embed");
$('#embedinput').focus().select();
}
else if (cmd == 'import_export')
{
self.toogleDropDown("importexport");
self.toogleDropDown("importexport");
}
else if (cmd == 'readonly')