From cf6894df38261b3b92c75d441bbe0a0ba58d963e Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 25 May 2006 16:40:00 +0200 Subject: more mediamanager fixes This fixes some styling issues, the cookie handling and a bug in the JavaScript caching mechanism. darcs-hash:20060525144000-7ad00-2f0b673d4f747c979f460e4e927a50eeeae81ec1.gz --- inc/media.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'inc/media.php') diff --git a/inc/media.php b/inc/media.php index f09aff2eb..7d2dbd5ff 100644 --- a/inc/media.php +++ b/inc/media.php @@ -114,7 +114,7 @@ function media_metaform($id,$auth){ echo '
'; echo ''; + echo ':'; // put input field if($field[2] == 'text'){ @@ -268,7 +268,13 @@ function media_filelist($ns,$auth=null,$jump=''){ function media_fileactions($item,$auth){ global $lang; - // no actions if not writable + // view button + $link = ml($item['id'],'',true); + echo ' '; + + + // no further actions if not writable if(!$item['writable']) return; // delete button @@ -377,6 +383,7 @@ function media_printimgdetail($item){ $t = $item['meta']->getField(array('IPTC.Caption','EXIF.UserComment', 'EXIF.TIFFImageDescription', 'EXIF.TIFFUserComment')); + if(utf8_strlen($t) > 250) $t = utf8_substr($t,0,250).'...'; if($t) echo htmlspecialchars($t).'
'; $t = $item['meta']->getField(array('IPTC.Keywords','IPTC.Category')); @@ -396,10 +403,12 @@ function media_uploadform($ns, $auth){ if($auth < AUTH_UPLOAD) return; //fixme print info on missing permissions? ?> +
+ :
-- cgit v1.2.3