Diff for /loncom/interface/lonhtmlcommon.pm between versions 1.324 and 1.326

version 1.324, 2012/09/24 10:47:26 version 1.326, 2012/10/08 10:26:34
Line 1101  sub Close_PrgWin { Line 1101  sub Close_PrgWin {
     undef(%$prog_state);      undef(%$prog_state);
 }  }
   
   
 # ------------------------------------------------------- Puts directory header  # ------------------------------------------------------- Puts directory header
   
 sub crumbs {  sub crumbs {
Line 1230  sub htmlarea_lang { Line 1231  sub htmlarea_lang {
     return $lang;      return $lang;
 }  }
   
   # return javacsript to activate elements of .colorchooser with jpicker:
   # Caller is responsible for enclosing this in <script> tags:
   #
   sub color_picker {
       return '
   $(document).ready(function(){
       $.fn.jPicker.defaults.images.clientPath="/adm/jpicker/images/";
       $(".colorchooser").jPicker({window: { position: {x: "screenCenter", y: "bottom"}}});
   });';
   }
   
 # ----------------------------------------- Script to activate only some fields  # ----------------------------------------- Script to activate only some fields
   
 sub htmlareaselectactive {  sub htmlareaselectactive {
Line 1349  sub htmlareaselectactive { Line 1361  sub htmlareaselectactive {
   
  });   });
 ';  ';
       $output .= &color_picker;
   
     # Code to put a due date countdown in 'duedatecountdown' span.      # Code to put a due date countdown in 'duedatecountdown' span.
     # This is currently located in the breadcrumb headers.      # This is currently located in the breadcrumb headers.
     # note that the dueDateLayout is internatinoalized below.      # note that the dueDateLayout is internatinoalized below.
Line 1425  sub htmlareaselectactive { Line 1439  sub htmlareaselectactive {
   
  });   });
   
       /* the muli colored editor can generate spellcheck with language 'none'
          to disable spellcheck as well
       */
     function doSpellcheck(element, lang) {      function doSpellcheck(element, lang) {
  \$(element).spellchecker('option', {lang: lang});   if (lang != 'none') {
  \$(element).spellchecker('check');       \$(element).spellchecker('option', {lang: lang});
       \$(element).spellchecker('check');
           }
     }      }
   
   

Removed from v.1.324  
changed lines
  Added in v.1.326


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