mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Media-Manager icon picker preview size fix.
This commit is contained in:
@@ -2091,7 +2091,7 @@ class media_admin_ui extends e_admin_ui
|
||||
foreach($bs2 as $val)
|
||||
{
|
||||
$items[] = array(
|
||||
'previewHtml' => $md->previewTag('glyphicon '.$val,array('type'=>'glyph')),
|
||||
'previewHtml' => $md->previewTag($val, array('type'=>'glyph')),
|
||||
'previewUrl' => 'glyphicon '.$val,
|
||||
'saveValue' => $val.'.glyph',
|
||||
'thumbUrl' => $val,
|
||||
@@ -2109,7 +2109,7 @@ class media_admin_ui extends e_admin_ui
|
||||
foreach($fa4 as $val)
|
||||
{
|
||||
$items[] = array(
|
||||
'previewHtml' => $md->previewTag('fa fa-'.$val,array('type'=>'glyph')),
|
||||
'previewHtml' => $md->previewTag('fa-'.$val,array('type'=>'glyph')),
|
||||
'previewUrl' => 'fa fa-'.$val,
|
||||
'saveValue' => 'fa-'.$val.'.glyph',
|
||||
'thumbUrl' => 'fa-'.$val,
|
||||
|
@@ -1453,7 +1453,7 @@ class e_form
|
||||
|
||||
if($parms['icon'])
|
||||
{
|
||||
$class = 'mediaselector-container-icon';
|
||||
$class = 'icon-preview mediaselector-container-icon';
|
||||
$parms['type'] = 'icon';
|
||||
}
|
||||
|
||||
|
@@ -1169,8 +1169,7 @@ class e_media
|
||||
break;
|
||||
|
||||
case "glyph":
|
||||
$preview = "<span class='icon-preview'>".$tp->toGlyph($default)."</span>";
|
||||
// $previewURL = false;
|
||||
$preview = $tp->toGlyph($default);
|
||||
break;
|
||||
|
||||
case "icon":
|
||||
|
Reference in New Issue
Block a user