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

raeburn raeburn at source.lon-capa.org
Sat Apr 8 10:58:11 EDT 2017


raeburn		Sat Apr  8 14:58:11 2017 EDT

  Modified files:              
    /loncom/interface	lonmodifycourse.pm 
  Log:
  - Hide role selection text used in modal window until needed.
  
  
Index: loncom/interface/lonmodifycourse.pm
diff -u loncom/interface/lonmodifycourse.pm:1.91 loncom/interface/lonmodifycourse.pm:1.92
--- loncom/interface/lonmodifycourse.pm:1.91	Sun Jan 22 19:22:04 2017
+++ loncom/interface/lonmodifycourse.pm	Sat Apr  8 14:58:11 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # handler for DC-only modifiable course settings
 #
-# $Id: lonmodifycourse.pm,v 1.91 2017/01/22 19:22:04 raeburn Exp $
+# $Id: lonmodifycourse.pm,v 1.92 2017/04/08 14:58:11 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -289,10 +289,12 @@
                         document.courselist.submit();
                     } else {
                         var str = '';
+                        \$("#LC_choose_adhoc").empty();
                         for (var i=0; i<data.roles.length; i++) {
                             \$("<label><input type='radio' value='"+data.roles[i].name+"' name='LC_get_role' id='LC_get_role_"+i+"' />"+data.roles[i].desc+"</label><span>  </span>")
                             .appendTo("#LC_choose_adhoc");
                         }
+                        \$( "#LC_adhocrole_chooser" ).toggle( true );
                         \$( "#LC_get_role_0").prop("checked", true);
                         \$( "#LC_adhocrole_chooser" ).dialog({ autoOpen: false });
                         \$( "#LC_adhocrole_chooser" ).dialog("open");
@@ -338,7 +340,7 @@
 // ]]>
 </script>
 
-<div id="LC_adhocrole_chooser" title="$lt{'title'}">
+<div id="LC_adhocrole_chooser" title="$lt{'title'}" style="display:none">
   <p>$lt{'preamble'}</p>
   <form name="LChelpdeskadhoc" id="LChelpdeskpicker" action="">
     <div id="LC_choose_adhoc">




More information about the LON-CAPA-cvs mailing list