CC-3250: UI design for mount monitor for media monitor
( Manage Media Folder and Playlist Builder screen) - adding tooltip and fixed a minor bug
This commit is contained in:
parent
1f5f5057bf
commit
0ec58f0bc3
5 changed files with 27 additions and 7 deletions
|
@ -875,11 +875,10 @@ class ApiController extends Zend_Controller_Action
|
|||
$watched_dirs = Application_Model_MusicDir::getWatchedDirs(null,null);
|
||||
|
||||
foreach( $added_list as $ad){
|
||||
$ad .= '/';
|
||||
foreach( $watched_dirs as $dir ){
|
||||
$dirPath = $dir->getDirectory();
|
||||
|
||||
$ad .= '/';
|
||||
|
||||
// if mount path itself was watched
|
||||
if($dirPath == $ad){
|
||||
Application_Model_MusicDir::addWatchedDir($dirPath, false);
|
||||
|
@ -901,9 +900,9 @@ class ApiController extends Zend_Controller_Action
|
|||
}
|
||||
}
|
||||
foreach( $removed_list as $rd){
|
||||
$rd .= '/';
|
||||
foreach( $watched_dirs as $dir ){
|
||||
$dirPath = $dir->getDirectory();
|
||||
$rd .= '/';
|
||||
// if dir contains any dir in removed_list( if watched dir resides on new mounted path )
|
||||
if(substr($dirPath, 0, strlen($rd)) === $rd && $dir->getExistsFlag() == true){
|
||||
Application_Model_MusicDir::removeWatchedDir($dirPath, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue