[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

bisitz bisitz@source.lon-capa.org
Wed, 15 Apr 2009 12:39:08 -0000


bisitz		Wed Apr 15 12:39:08 2009 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  No word wrapping for "Select Course" link anymore
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.786 loncom/interface/loncommon.pm:1.787
--- loncom/interface/loncommon.pm:1.786	Tue Apr 14 15:32:12 2009
+++ loncom/interface/loncommon.pm	Wed Apr 15 12:39:07 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.786 2009/04/14 15:32:12 neumanie Exp $
+# $Id: loncommon.pm,v 1.787 2009/04/15 12:39:07 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -602,8 +602,13 @@
 
 sub selectcourse_link {
    my ($form,$unameele,$udomele,$desc,$extra_element,$multflag,$selecttype)=@_;
-   return "<a href='".'javascript:opencrsbrowser("'.$form.'","'.$unameele.
-        '","'.$udomele.'","'.$desc.'","'.$extra_element.'","'.$multflag.'","'.$selecttype.'");'."'>".&mt('Select Course')."</a>";
+   return '<span class="LC_nobreak">'
+         ."<a href='"
+         .'javascript:opencrsbrowser("'.$form.'","'.$unameele
+         .'","'.$udomele.'","'.$desc.'","'.$extra_element
+         .'","'.$multflag.'","'.$selecttype.'");'
+         ."'>".&mt('Select Course').'</a>'
+         .'</span>';
 }
 
 sub selectauthor_link {