From 99d99cff1b1e27992fe52e8fa28a8fa0d024a58a Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 23 Jul 2008 12:17:38 +0000 Subject: [PATCH] MDL-13766, rewrite ajax client code, encapsulate all javascrpt code in repository class, which is easy to reuse now. --- repository/ajax.php | 619 ++++++++++++------------- repository/boxnet/repository.class.php | 2 +- repository/flickr/repository.class.php | 2 +- 3 files changed, 304 insertions(+), 319 deletions(-) diff --git a/repository/ajax.php b/repository/ajax.php index e327f5a833..6f9ddf7398 100644 --- a/repository/ajax.php +++ b/repository/ajax.php @@ -12,7 +12,6 @@ require_once('lib.php'); picker. \*******************************************************/ -$itempic = $CFG->pixpath.'/i/item.gif'; $meta = << @@ -22,54 +21,36 @@ $meta = << - - - - - - - - - + + + + + + + + + - - - - + + + + + EOD; echo $meta; ?> @@ -85,308 +66,312 @@ echo $meta; diff --git a/repository/boxnet/repository.class.php b/repository/boxnet/repository.class.php index 03bc50dcb4..7b967ba808 100755 --- a/repository/boxnet/repository.class.php +++ b/repository/boxnet/repository.class.php @@ -114,7 +114,7 @@ class repository_boxnet extends repository{ $str .= '
'; $str .= '