By Ray, Fix structure page editinh bug

This commit is contained in:
Manson Wang 2013-11-06 17:16:14 +08:00
parent 5df8ff2e52
commit 3744e1c3e7
1 changed files with 3 additions and 7 deletions

View File

@ -130,13 +130,9 @@ function iFrameContent() {
}).css('cursor', 'default'); }).css('cursor', 'default');
} }
$('#pageslide_iframe').load(function() { $('#pageslide_iframe').load(function() {
var $iContents = $(this).contents(), var $iContents = $(this).contents(),
$pc = $iContents.find('.page_content'); $pc = $iContents.find('.page_content');
try { iFrameFunction($iContents, $pc);
$(this).get(0).contentWindow.externalFunction(iFrameFunction, $iContents, $pc);
} catch(err) {
console.log(err);
}
}); });
} }
function pageSetting(id, edit) { function pageSetting(id, edit) {