summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-04-30 15:36:34 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-04-30 15:36:34 +0000
commit18683f22aa30973e84c94e884371f5f10a9d80c6 (patch)
treeefd5c097a175142993e8e3c9548617ddda6f427d /lib/class
parent34a5c86beeabea8b36c96457931bfe17577b85e1 (diff)
downloadampache-18683f22aa30973e84c94e884371f5f10a9d80c6.tar.gz
ampache-18683f22aa30973e84c94e884371f5f10a9d80c6.tar.bz2
ampache-18683f22aa30973e84c94e884371f5f10a9d80c6.zip
fix lack of ui response on deleting track right after appending to saved playlist
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/ajax.class.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php
index a9a9f3ba..bac642f8 100644
--- a/lib/class/ajax.class.php
+++ b/lib/class/ajax.class.php
@@ -26,6 +26,8 @@
*/
class Ajax {
+ private static $include_override;
+
/**
* constructor
* This is what is called when the class is loaded
@@ -158,13 +160,23 @@ class Ajax {
} // run
/**
+ * set_include_override
+ * This sets the cinlduing div override, used only one place kind of a hack
+ */
+ public static function set_include_override($value) {
+
+ self::$include_override = make_bool($value);
+
+ } // set_include_override
+
+ /**
* 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; }
+ if (AJAX_INCLUDE == '1' AND !self::$include_override) { return true; }
echo '<div id="' . scrub_out($name) . '">';
@@ -176,10 +188,12 @@ class Ajax {
*/
public static function end_container() {
- if (AJAX_INCLUDE == '1') { return true; }
+ if (AJAX_INCLUDE == '1' AND !self::$include_override) { return true; }
echo "</div>";
+ self::$include_override = false;
+
} // end_container
} // end Ajax class