Changeset 2388 for MediaWiki/trunk/plugins/mediawiki/dialogs/math.html
- Timestamp:
- 2008-08-27 16:58:27 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
MediaWiki/trunk/plugins/mediawiki/dialogs/math.html
r1830 r2388 92 92 function UpdateImageFromAjax( response ) 93 93 { 94 oEditor.FCKUndo.SaveUndoStep() ; 95 94 96 if ( !oMathImage ) 97 { 95 98 oMathImage = FCK.CreateElement( 'IMG' ) ; 99 oMathImage.className = 'FCK__MWMath' ; 100 oMathImage.src = FCKConfig.PluginsPath + 'mediawiki/images/icon_math.gif' ; 101 } 96 102 else 97 oEditor.FCKUndo.SaveUndoStep() ; 103 { 104 if ( response.responseText ) 105 { 106 oMathImage.src = response.responseText ; 107 SetAttribute( oMathImage, "_fcksavedurl", response.responseText ) ; 108 } 109 else 110 { 111 oMathImage.src = FCKConfig.PluginsPath + 'mediawiki/images/icon_math.gif' ; 112 } 113 } 98 114 99 115 SetAttribute( oMathImage, "_fck_mw_math", GetE('xTemplateRaw').value.Trim() ) ; 100 116 SetAttribute( oMathImage, "_fckfakelement", 'true' ) ; 101 102 oMathImage.src = response.responseText ;103 SetAttribute( oMathImage, "_fcksavedurl", response.responseText ) ;104 117 105 118 // Call it using setTimeout to avoid a strange behavior in Firefox.