summaryrefslogtreecommitdiffstats
path: root/lib/class/ajax.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 04:35:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 04:35:26 +0000
commit0d2c89e90d7c64eba058ae375760a350d336578b (patch)
treeab689e3d203db1e0b2cce5e44e9f42aa95d1aff9 /lib/class/ajax.class.php
parent17a4516e29e9ce9d2583d8b06431dfcdf5722c11 (diff)
downloadampache-0d2c89e90d7c64eba058ae375760a350d336578b.tar.gz
ampache-0d2c89e90d7c64eba058ae375760a350d336578b.tar.bz2
ampache-0d2c89e90d7c64eba058ae375760a350d336578b.zip
fixed the last of the missing MPD features, added new ajax config hotness (not that special)
Diffstat (limited to 'lib/class/ajax.class.php')
-rw-r--r--lib/class/ajax.class.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php
index e4e4baf8..1a064395 100644
--- a/lib/class/ajax.class.php
+++ b/lib/class/ajax.class.php
@@ -157,5 +157,30 @@ class Ajax {
} // run
+ /**
+ * start_container
+ * This checks to see if we're AJAX'in if we aren't then it echos out the
+ * html needed to start a container that can be replaced by Ajax
+ */
+ public static function start_container($name) {
+
+ if (AJAX_INCLUDE == '1') { return true; }
+
+ echo '<div id="' . scrub_out($name) . '">';
+
+ } // start_container
+
+ /**
+ * end_container
+ * This ends the container if we're not doing the AJAX thing
+ */
+ public static function end_container() {
+
+ if (AJAX_INCLUDE == '1') { return true; }
+
+ echo "</div>";
+
+ } // end_container
+
} // end Ajax class
?>