[svn r18510] FS#2867: FCKEditor, the simple file manager: A small visual fix (about choosing displayed file icons).

skala
Ivan Tcholakov 16 years ago
parent ead814175c
commit 8bbd29103b
  1. 17
      main/inc/lib/fckeditor/editor/filemanager/browser/default/browser.html

@ -193,6 +193,23 @@ oIcons.GetIcon = function( fileName )
{
var sExtension = fileName.substr( fileName.lastIndexOf('.') + 1 ).toLowerCase() ;
switch ( sExtension )
{
case 'flv' :
case 'mpg' :
case 'mpeg' :
case 'mp4' :
case 'mov' :
case 'wmv' :
case 'asf' :
sExtension = 'avi' ;
break ;
case 'jpeg' :
sExtension = 'jpg' ;
break ;
}
if ( this.AvailableIcons[ sExtension ] == true )
return sExtension ;
else

Loading…
Cancel
Save