]> git.mjollnir.org Git - moodle.git/commitdiff
Putting the files back to plain JS files
authormoodler <moodler>
Sat, 23 Sep 2006 15:11:37 +0000 (15:11 +0000)
committermoodler <moodler>
Sat, 23 Sep 2006 15:11:37 +0000 (15:11 +0000)
lib/ajax/ajaxlib.php
lib/ajax/block_classes.js [moved from lib/ajax/block_classes.php with 96% similarity]
lib/ajax/section_classes.js [moved from lib/ajax/section_classes.php with 97% similarity]

index 608ff81dd054aa963d1ade20b3d6efc8edbd6d05..3898a2a51091987564e24d14d2ed94c8d37dfbbd 100644 (file)
@@ -16,8 +16,8 @@ function print_require_js($list) {
             'yui_dragdrop' => '/lib/yui/dragdrop/dragdrop.js',
             'yui_logger' => '/lib/yui/logger/logger.js',
             'yui_connection' => '/lib/yui/connection/connection.js',        
-            'ajaxcourse_blocks' => '/lib/ajax/block_classes.php',
-            'ajaxcourse_sections' => '/lib/ajax/section_classes.php',
+            'ajaxcourse_blocks' => '/lib/ajax/block_classes.js',
+            'ajaxcourse_sections' => '/lib/ajax/section_classes.js',
             'ajaxcourse' => '/lib/ajax/ajaxcourse.js'
             );
 
similarity index 96%
rename from lib/ajax/block_classes.php
rename to lib/ajax/block_classes.js
index 9e041df1b44b87241de7f557ec3fdeaf170ad14b..d7a48f1734cb6ecc0b9be7d6b47353d66bcd4952 100644 (file)
@@ -1,23 +1,9 @@
-<?php // $Id$
-
-/// Javascript file run through PHP so we can control it better
-
-    $nomoodlecookie = true;
-
-    require_once('../../config.php');
-
-    $lifetime = '86400';
-
-    @header('Content-type: text/javascript'); 
-    @header('Last-Modified: '. gmdate('D, d M Y H:i:s', time()) .' GMT');
-    @header('Cache-control: max-age='.$lifetime);
-    @header('Expires: '. gmdate('D, d M Y H:i:s', time() + $lifetime) .'GMT');
-    @header('Pragma: ');
-?>
 /*
  * library for ajaxcourse formats, the classes and related functions for drag and drop blocks
  * 
  * this library requires a 'main' object created in calling document
+ *
+ * $Id$
  * 
  */
 
similarity index 97%
rename from lib/ajax/section_classes.php
rename to lib/ajax/section_classes.js
index 4d373077f8397e01748c0c77a5deb63e7b481319..c147b00937c2a710fc6079abdb7dc6db8f977763 100755 (executable)
@@ -1,22 +1,9 @@
-<?php // $Id$
-
-/// Javascript file run through PHP so we can control it better
-
-    $nomoodlecookie = true;
-
-    include('../../config.php');
-
-    $lifetime = '86400';
-
-    @header('Content-type: text/javascript'); 
-    @header('Last-Modified: '. gmdate('D, d M Y H:i:s', time()) .' GMT');
-    @header('Cache-control: max-age='.$lifetime);
-    @header('Expires: '. gmdate('D, d M Y H:i:s', time() + $lifetime) .'GMT');
-    @header('Pragma: ');
-?>
 /*
  * library for ajaxcourse formats, the classes and related functions for sections and resources
  * this library requires a 'main' object created in calling document 
+ *
+ * $Id$
+ *
  */