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:
parent
34a5c86bee
commit
18683f22aa
4 changed files with 25 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue