Diff for /loncom/interface/lonmenu.pm between versions 1.337 and 1.339

version 1.337, 2010/08/24 09:11:38 version 1.339, 2010/09/09 19:33:18
Line 1123  sub utilityfunctions { Line 1123  sub utilityfunctions {
     # it is split into 3 parts and the inputfields for title and path are left out      # it is split into 3 parts and the inputfields for title and path are left out
     # these fields are inserted later to set the values for title and path      # these fields are inserted later to set the values for title and path
     # automatically via JavaScript (document.title and location.pathname)       # automatically via JavaScript (document.title and location.pathname) 
       my %folders = &Apache::lonnet::get('wishlist',['folders']);
       if ($folders{'folders'} eq '') {
           $folders{'folders'} = '<option value="" selected="selected">('.&mt('Top level').')</option>';
       }
     my $in_page_wishlistlink1 = '<h1>'.&mt('Set a link to wishlist').'</h1>'.      my $in_page_wishlistlink1 = '<h1>'.&mt('Set a link to wishlist').'</h1>'.
                                 '<form method="post" name="newlink" action="/adm/wishlist?mode=set" '.                                  '<form method="post" name="newlink" action="/adm/wishlist?mode=set" '.
                                 'onsubmit="return newlinksubmit();" >'.                                  'onsubmit="return newlinksubmit();" >'.
Line 1140  sub utilityfunctions { Line 1144  sub utilityfunctions {
                                 '<br/><br/>'.                                  '<br/><br/>'.
                                 '<input type="submit" value="'.&mt('Save in').'" />'.                                  '<input type="submit" value="'.&mt('Save in').'" />'.
                                 '<select name="folders">'.                                  '<select name="folders">'.
                                 &Apache::lonwishlist::getfoldersOption().                                  $folders{'folders'}.
                                 '</select>'.                                  '</select>'.
                                 '<input type="button" value="'.&mt('cancel').'" onclick="javascript:window.close();" />'.                                  '<input type="button" value="'.&mt('cancel').'" onclick="javascript:window.close();" />'.
                                 '</form>';                                  '</form>';
Line 1560  function adhocRole(roleitem) { Line 1564  function adhocRole(roleitem) {
             secok = 0;              secok = 0;
             var numrolesec = rolesections[selidx].length;              var numrolesec = rolesections[selidx].length;
             var msgidx = numsec[selidx] - numrolesec;              var msgidx = numsec[selidx] - numrolesec;
             secchoice = prompt("$lt{'this'}\\n"+secpick[msgidx]+"\\n$lt{'avai'} "+roleseclist[selidx],"");              secchoice = prompt("$lt{'this'} "+secpick[msgidx]+"\\n$lt{'avai'} "+roleseclist[selidx],"");
             if (secchoice == '') {              if (secchoice == '') {
                 if (msgidx > 0) {                  if (msgidx > 0) {
                     secok = 1;                      secok = 1;

Removed from v.1.337  
changed lines
  Added in v.1.339


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>