--- loncom/xml/londefdef.pm 2007/06/19 19:40:07 1.367 +++ loncom/xml/londefdef.pm 2007/06/19 20:25:45 1.368 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.367 2007/06/19 19:40:07 banghart Exp $ +# $Id: londefdef.pm,v 1.368 2007/06/19 20:25:45 banghart Exp $ # # # Copyright Michigan State University Board of Trustees @@ -3001,9 +3001,10 @@ sub start_img { # And here's where the semi-quote breaks down: allow the user # to edit the beast as well by rendering the problem for edit: } elsif ($target eq 'edit') { + my $only = join(',',&Apache::loncommon::filecategorytypes('Pictures')); $currentstring .=&Apache::edit::tag_start($target,$token); $currentstring .=&Apache::edit::text_arg('Image Url:','src',$token,70). - &Apache::edit::browse('src',undef,'alt','gif,jpg,png,jpeg').' '. + &Apache::edit::browse('src',undef,'alt',$only).' '. &Apache::edit::search('src',undef,'alt').'
'; $currentstring .=&Apache::edit::text_arg('Description:','alt',$token,70).'
'; $currentstring .=&Apache::edit::text_arg('width (pixel):','width',$token,5);