Putting the files back to plain JS files

This commit is contained in:
moodler
2006-09-23 15:11:37 +00:00
parent 3febabd888
commit 3e1e2b6968
3 changed files with 7 additions and 34 deletions
+2 -2
View 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'
);
@@ -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$
*
*/
@@ -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$
*
*/