1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Media-Manager icon picker preview size fix.

This commit is contained in:
Cameron
2018-09-08 11:53:40 -07:00
parent f19817f8b3
commit 7340ea8377
3 changed files with 4 additions and 5 deletions

View File

@@ -2091,7 +2091,7 @@ class media_admin_ui extends e_admin_ui
foreach($bs2 as $val) foreach($bs2 as $val)
{ {
$items[] = array( $items[] = array(
'previewHtml' => $md->previewTag('glyphicon '.$val,array('type'=>'glyph')), 'previewHtml' => $md->previewTag($val, array('type'=>'glyph')),
'previewUrl' => 'glyphicon '.$val, 'previewUrl' => 'glyphicon '.$val,
'saveValue' => $val.'.glyph', 'saveValue' => $val.'.glyph',
'thumbUrl' => $val, 'thumbUrl' => $val,
@@ -2109,7 +2109,7 @@ class media_admin_ui extends e_admin_ui
foreach($fa4 as $val) foreach($fa4 as $val)
{ {
$items[] = array( $items[] = array(
'previewHtml' => $md->previewTag('fa fa-'.$val,array('type'=>'glyph')), 'previewHtml' => $md->previewTag('fa-'.$val,array('type'=>'glyph')),
'previewUrl' => 'fa fa-'.$val, 'previewUrl' => 'fa fa-'.$val,
'saveValue' => 'fa-'.$val.'.glyph', 'saveValue' => 'fa-'.$val.'.glyph',
'thumbUrl' => 'fa-'.$val, 'thumbUrl' => 'fa-'.$val,

View File

@@ -1453,7 +1453,7 @@ class e_form
if($parms['icon']) if($parms['icon'])
{ {
$class = 'mediaselector-container-icon'; $class = 'icon-preview mediaselector-container-icon';
$parms['type'] = 'icon'; $parms['type'] = 'icon';
} }

View File

@@ -1169,8 +1169,7 @@ class e_media
break; break;
case "glyph": case "glyph":
$preview = "<span class='icon-preview'>".$tp->toGlyph($default)."</span>"; $preview = $tp->toGlyph($default);
// $previewURL = false;
break; break;
case "icon": case "icon":