[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
banghart
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 19 Jun 2007 19:40:11 -0000
banghart Tue Jun 19 15:40:11 2007 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
bug 3796: Restrict display to graphic files only.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.366 loncom/xml/londefdef.pm:1.367
--- loncom/xml/londefdef.pm:1.366 Tue Jun 5 18:37:58 2007
+++ loncom/xml/londefdef.pm Tue Jun 19 15:40:07 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.366 2007/06/05 22:37:58 albertel Exp $
+# $Id: londefdef.pm,v 1.367 2007/06/19 19:40:07 banghart Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -3003,7 +3003,7 @@
} elsif ($target eq 'edit') {
$currentstring .=&Apache::edit::tag_start($target,$token);
$currentstring .=&Apache::edit::text_arg('Image Url:','src',$token,70).
- &Apache::edit::browse('src',undef,'alt').' '.
+ &Apache::edit::browse('src',undef,'alt','gif,jpg,png,jpeg').' '.
&Apache::edit::search('src',undef,'alt').'<br />';
$currentstring .=&Apache::edit::text_arg('Description:','alt',$token,70).'<br />';
$currentstring .=&Apache::edit::text_arg('width (pixel):','width',$token,5);