Index: jscalendar.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jstools/jscalendar/jscalendar.install,v
retrieving revision 1.2
diff -u -r1.2 jscalendar.install
--- jscalendar.install	17 May 2006 20:59:14 -0000	1.2
+++ jscalendar.install	24 Mar 2008 14:19:29 -0000
@@ -1,11 +1,11 @@
 <?php
 // $Id: jscalendar.install,v 1.2 2006/05/17 20:59:14 m3avrck Exp $
 
-/** 
-  * Implementation of hook_install(). 
+/**
+  * Implementation of hook_install().
   */
-function jscalendar_install() {  
-  //set a high weight so jscalendar is called after all other hook_form_alters which may add jscalendar to various forms  
+function jscalendar_install() {
+  //set a high weight so jscalendar is called after all other hook_form_alters which may add jscalendar to various forms
   db_query("UPDATE {system} SET weight = 10 WHERE name = 'jscalendar'");
 }
 
Index: jscalendar.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jstools/jscalendar/jscalendar.module,v
retrieving revision 1.14.2.4
diff -u -r1.14.2.4 jscalendar.module
--- jscalendar.module	8 Aug 2007 21:26:10 -0000	1.14.2.4
+++ jscalendar.module	24 Mar 2008 14:19:29 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: jscalendar.module,v 1.14.2.4 2007/08/08 21:26:10 nedjo Exp $
+// $Id: jscalendar.module,v 1.16 2007/06/21 23:03:00 nedjo Exp $
 
 /**
  * @file
@@ -22,7 +22,7 @@
 /**
  * Implementation of hook_menu()
  */
-function jscalendar_menu($may_cache){
+function jscalendar_menu($may_cache) {
   $items = array();
   if ($may_cache) {
     $items[] = array(
@@ -32,7 +32,7 @@
       'callback' => 'drupal_get_form',
       'callback arguments' => array('jscalendar_admin_settings')
     );
-    
+
   }
   return $items;
 }
@@ -52,13 +52,13 @@
       jscalendar_load();
       $settings = array('ifFormat', 'showsTime', 'timeFormat');
       foreach ($settings as $setting) {
-        if (isset($form[$key]['#jscalendar_' . $setting])) {
-          $form[$key.'_jscalendar']['#tree'] = TRUE;
-          $form[$key.'_jscalendar'][$setting] = array(
+        if (isset($form[$key]['#jscalendar_'. $setting])) {
+          $form[$key .'_jscalendar']['#tree'] = TRUE;
+          $form[$key .'_jscalendar'][$setting] = array(
             '#type' => 'hidden',
-            '#value' => $form[$key]['#jscalendar_' . $setting]
+            '#value' => $form[$key]['#jscalendar_'. $setting]
           );
-          unset($form[$key]['#jscalendar_' . $setting]);
+          unset($form[$key]['#jscalendar_'. $setting]);
         }
       }
     }
@@ -119,16 +119,16 @@
     }
     // Supported indirectly.
     else if ($locale == 'cs') {
-       $lib_locale = 'cs-utf8';
+      $lib_locale = 'cs-utf8';
     }
     else if ($lib_locale == 'he') {
-       $lib_locale = 'he-utf8';
+      $lib_locale = 'he-utf8';
     }
     else if (($locale == 'pt-br') || ($locale == 'pt-pt')) {
-       $lib_locale = 'pt';
+      $lib_locale = 'pt';
     }
     else if (($locale == 'zh-hans') || ($locale == 'zh-hant')) {
-       $lib_locale = 'zh';
+      $lib_locale = 'zh';
     }
     // Not supported, default to 'en'.
     else {
@@ -136,10 +136,10 @@
     }
   }
   $path = drupal_get_path('module', 'jscalendar');
-  drupal_add_js($path . '/lib/calendar_stripped.js');
-  drupal_add_js($path . '/lib/calendar-setup_stripped.js');
-  drupal_add_js($path . '/lib/lang/calendar-' . $lib_locale . '.js');
-  drupal_add_js($path . '/jscalendar.js');
+  drupal_add_js($path .'/lib/calendar_stripped.js');
+  drupal_add_js($path .'/lib/calendar-setup_stripped.js');
+  drupal_add_js($path .'/lib/lang/calendar-'. $lib_locale .'.js');
+  drupal_add_js($path .'/jscalendar.js');
   drupal_add_css($path .'/jscalendar.css');
   drupal_add_css(variable_get('jscalendar_css', $path .'/lib/skins/aqua/theme.css'));
   $loaded = TRUE;
