Project

General

Profile

« Previous | Next » 

Revision 5ea8b301

Added by Andreas Kohlbecker over 10 years ago

implementing a java-script development mode

View differences:

7.x/modules/cdm_dataportal/settings.php
697 697
      '#default_value' => $aggregate_by_taxon_relationships['invers'],
698 698
  );
699 699

  
700
  // ----------------------
701
  $form['cdm_js_devel_mode'] = array(
702
      '#type' => 'checkbox',
703
      '#title' => 'Java-script developer mode',
704
      '#default_value' => variable_get('cdm_js_devel_mode', FALSE),
705
      '#description' => 'In production envirionments the java script libraries
706
      the cdm_dataportal is making use of are compressed and optimized. This
707
      is good for performance but a caveat if you need to debug java-script. When the
708
      java-script developer mode is enabled the uncompressed and commented developer
709
      versions of java-script libraries will be used where possible.
710
      <br/><strong>Do not use this option in production!</strong>'
711
  );
712

  
700 713
  // Comment @WA: D7 form api does not support reset buttons,
701 714
  // so to mimic the D5 reset button we add one like this.
702 715
  $form['actions']['reset'] = array(

Also available in: Unified diff