* fixed js error for ie8.

This commit is contained in:
Catouse
2014-05-03 09:56:05 +08:00
parent 50a3cc4e95
commit e7718fc708
2 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -45,7 +45,7 @@ function initKindeditor(afterInit)
if(editor.tools == 'fullTools') editorTool = fullTools;
var K = KindEditor, $editor = $('#' + editorID);
window.editor['#'] = window.editor[editorID] = K.create('#' + editorID,
var options =
{
cssPath:[themeRoot + 'zui/css/min.css'],
width:'100%',
@@ -106,7 +106,9 @@ function initKindeditor(afterInit)
}
/* End */
}
});
};
try {window.editor['#'] = window.editor[editorID] = K.create('#' + editorID, options);}
catch(e){}
});
if($.isFunction(afterInit)) afterInit();
+2 -2
View File
@@ -914,9 +914,9 @@ function setModal()
if(modal.data('first')) modal.data('first', false);
}, 100);
if(!$framebody.data('resizing'))
if(navigator.userAgent.indexOf("MSIE 8.0") < 0)
{
$framebody.data('resizing', true).resize(function()
$framebody.resize(function()
{
modalBody.css('height', $framebody.outerHeight());
});