[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /homework drawimage.pm

raeburn raeburn at source.lon-capa.org
Mon Aug 5 20:41:33 EDT 2024


raeburn		Tue Aug  6 00:41:33 2024 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/homework	drawimage.pm 
  Log:
  - For 2.11. &edit::browse_or_search() not available in edit.pm version in 
    2.11, so replace with &browse() and &search() functions which are.
  
  
Index: loncom/homework/drawimage.pm
diff -u loncom/homework/drawimage.pm:1.14 loncom/homework/drawimage.pm:1.14.2.1
--- loncom/homework/drawimage.pm:1.14	Tue Apr  9 20:01:31 2024
+++ loncom/homework/drawimage.pm	Tue Aug  6 00:41:33 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # programatic image drawing
 #
-# $Id: drawimage.pm,v 1.14 2024/04/09 20:01:31 raeburn Exp $
+# $Id: drawimage.pm,v 1.14.2.1 2024/08/06 00:41:33 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -460,8 +460,8 @@
         my $only = join(',',&Apache::loncommon::filecategorytypes('Pictures'));
         $result=&Apache::edit::tag_start($target,$token,'Background Image').
             &Apache::edit::editline($token->[1],$bgimg,'Image Source File',40).
-            &Apache::edit::browse_or_search(undef,'textnode',undef,$only,undef,1).
-            '<br />'.
+	    &Apache::edit::browse(undef,'textnode',undef,$only).' '.
+	    &Apache::edit::search(undef,'textnode').'<br />'.
             &Apache::edit::text_arg('x:','x',$token,6).
             &Apache::edit::text_arg('y:','y',$token,6).
             &Apache::edit::text_arg('clipx:','clipx',$token,6).




More information about the LON-CAPA-cvs mailing list