1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00

fix lack of ui response on deleting track right after appending to saved playlist

This commit is contained in:
Karl 'vollmerk' Vollmer 2009-04-30 15:36:34 +00:00
parent 34a5c86bee
commit 18683f22aa
4 changed files with 25 additions and 3 deletions

View file

@ -26,6 +26,8 @@
*/
class Ajax {
private static $include_override;
/**
* constructor
* This is what is called when the class is loaded
@ -157,6 +159,16 @@ 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
@ -164,7 +176,7 @@ class 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