diff options
| author | 2014-10-02 15:02:42 +0200 | |
|---|---|---|
| committer | 2014-10-02 15:02:42 +0200 | |
| commit | 6effa82cef4ea8fd98178e72b270de6ea4f9f80f (patch) | |
| tree | 0afa05e2266e9ac786764f94fe3888d2c6b6b832 /app | |
| parent | 50f07febaed5e839d4e7d56a664c8a208bc2aaf5 (diff) | |
Improve drag and drop
- Refactoring
- Better design
- Item doesn't disappear if action is not completed
See https://github.com/marienfressinaud/FreshRSS/issues/646
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/subscription/index.phtml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index 3a79a34e6..2c56f79ed 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -1,6 +1,6 @@ <?php $this->partial('aside_subscription'); ?> -<div class="post"> +<div class="post drop-section"> <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a> <h2><?php echo _t('subscription_management'); ?></h2> @@ -113,21 +113,24 @@ </form> </div> - <ul class="box-content" dropzone="move" data-cat-id="<?php echo $cat->id(); ?>"> + <ul class="box-content" data-cat-id="<?php echo $cat->id(); ?>"> <?php if (!empty($feeds)) { ?> <?php foreach ($feeds as $feed) { $error = $feed->inError() ? ' error' : ''; $empty = $feed->nbEntries() == 0 ? ' empty' : ''; ?> - <li class="item feed<?php echo $error, $empty; ?>" draggable="true" data-feed-id="<?php echo $feed->id(); ?>"> + <li class="item feed<?php echo $error, $empty; ?>" + draggable="true" + data-feed-id="<?php echo $feed->id(); ?>" + dropzone="move"> <a class="configure open-slider" href="<?php echo _url('subscription', 'feed', 'id', $feed->id()); ?>"><?php echo _i('configure'); ?></a> <img class="favicon" src="<?php echo $feed->favicon(); ?>" alt="✇" /> <?php echo $feed->name(); ?> </li> <?php } } else { ?> - <li class="item"><?php echo _t('category_empty'); ?></li> + <li class="item disabled" dropzone="move"><?php echo _t('category_empty'); ?></li> <?php } ?> </ul> </div> |
