* fixed js error for ie8.
This commit is contained in:
@@ -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
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user