1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 10:49:37 +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

@ -46,14 +46,16 @@ while ($row = Dba::fetch_row($db_results)) {
// Clean out dead files
$catalog->clean_catalog();
ob_end_flush();
// Verify Existing
$catalog->verify_catalog($row['0']);
ob_end_flush();
echo "\n\n";
// Look for new files
$catalog->add_to_catalog();
ob_end_flush();
echo "\n\n";
} // end foreach

View file

@ -4,6 +4,9 @@
--------------------------------------------------------------------------
v.3.5
- Fixed a problem where after adding a track to a saved playlist
there was no UI response upon deleting the track without
a page refresh
- Fix an issue where the full version of the album art was never
used even when requested
- Fix maxlength on acl fields being to small for all IPv6 addresses

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

View file

@ -128,6 +128,9 @@ switch ($_REQUEST['action']) {
} // end switch
} // foreach
// Override normal include procedure
Ajax::set_include_override(true);
// Add our new songs
$playlist->add_songs($songs);
$playlist->format();