CC-2456 : Multiple storage folders show up on the same line
This commit is contained in:
parent
4a478117c6
commit
e8265614ba
2 changed files with 10 additions and 7 deletions
|
@ -34,15 +34,18 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<?php $watched_dirs = MusicDir::getWatchedDirs(); ?>
|
<?php $watched_dirs = MusicDir::getWatchedDirs(); ?>
|
||||||
<dd id="watchedFolder-table" class="block-display selected-item">
|
|
||||||
<?php if (count($watched_dirs) > 0): ?>
|
<?php if (count($watched_dirs) > 0): ?>
|
||||||
<?php foreach($watched_dirs as $watched_dir): ?>
|
<?php foreach($watched_dirs as $watched_dir): ?>
|
||||||
<span><?php echo $watched_dir->getDirectory(); ?></span><span class="ui-icon ui-icon-close"></span>
|
<dd class="block-display selected-item">
|
||||||
|
<span><?php echo $watched_dir->getDirectory(); ?></span><span class="ui-icon ui-icon-close"></span>
|
||||||
|
</dd>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span>You are not watching any music folders.</span>
|
<dd class="block-display selected-item">
|
||||||
|
<span>You are not watching any music folders.</span>
|
||||||
|
</dd>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</dd>
|
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -16,7 +16,7 @@ function setWatchedDirEvents() {
|
||||||
systemImageUrl: 'img/browser/',
|
systemImageUrl: 'img/browser/',
|
||||||
handlerUrl: '/Preference/server-browse/format/json',
|
handlerUrl: '/Preference/server-browse/format/json',
|
||||||
title: 'Choose Storage Folder',
|
title: 'Choose Storage Folder',
|
||||||
basePath: '/home',
|
basePath: '',
|
||||||
requestMethod: 'POST',
|
requestMethod: 'POST',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ function setWatchedDirEvents() {
|
||||||
systemImageUrl: 'img/browser/',
|
systemImageUrl: 'img/browser/',
|
||||||
handlerUrl: '/Preference/server-browse/format/json',
|
handlerUrl: '/Preference/server-browse/format/json',
|
||||||
title: 'Choose Folder to Watch',
|
title: 'Choose Folder to Watch',
|
||||||
basePath: '/home',
|
basePath: '',
|
||||||
requestMethod: 'POST',
|
requestMethod: 'POST',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ function setWatchedDirEvents() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#watchedFolder-table').find('.ui-icon-close').click(function(){
|
$('.selected-item').find('.ui-icon-close').click(function(){
|
||||||
var row = $(this).parent();
|
var row = $(this).parent();
|
||||||
var folder = $(this).prev().text();
|
var folder = $(this).prev().text();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue