removed function
This commit is contained in:
parent
fea90a49ae
commit
e79552015d
15
Wiki.html
15
Wiki.html
@ -1,16 +1,11 @@
|
||||
<head>
|
||||
<script>
|
||||
function cleanContent()
|
||||
{
|
||||
var $iFrameContents = $('iframe').contents(),
|
||||
$entryContent = $iFrameContents.find('div.file-view');
|
||||
$iFrameContents.find('html').replaceWith($entryContent);
|
||||
// Next restore the style-sheets
|
||||
var stylesheet = $('iframe').contents().find('link[rel="stylesheet"]').prependTo($iFrameContents.find('div.file-view'));
|
||||
|
||||
|
||||
}
|
||||
$('iframe').load( function(){
|
||||
var $iFrameContents = $('iframe').contents(),
|
||||
$entryContent = $iFrameContents.find('div.file-view');
|
||||
$iFrameContents.find('html').replaceWith($entryContent);
|
||||
// Next restore the style-sheets
|
||||
var stylesheet = $('iframe').contents().find('link[rel="stylesheet"]').prependTo($iFrameContents.find('div.file-view'));
|
||||
console.log("Cleaning content");
|
||||
cleanContent();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user