diff options
| author | 2021-10-19 15:08:32 +0200 | |
|---|---|---|
| committer | 2021-10-19 15:08:32 +0200 | |
| commit | 3623a5421df8198651d8e8a9d676f0661c307cf9 (patch) | |
| tree | 10cb0ddf512aa09a3a8be6c186a1447dca517e9b /p/scripts | |
| parent | 77e21cb41fe1f2a7a9dc8563b3bfb21fc3262d1a (diff) | |
enhancement subscription management page (#3893)
* wip
* wip2
* i18n
* Update app/views/helpers/category/update.phtml
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
* fixed box layout
* Revert "i18n"
This reverts commit a2e4d8ace661df806997a8310f069a67d71910f4.
* i18n
This reverts commit 55236930cfc7165ff883ea2a9538d3502b8922eb.
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/category.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p/scripts/category.js b/p/scripts/category.js index 3e09fc4c7..2a24bc47d 100644 --- a/p/scripts/category.js +++ b/p/scripts/category.js @@ -24,8 +24,8 @@ function dragend_process(t) { const p = t.parentElement; t.remove(); - if (p.childElementCount <= 0) { - p.insertAdjacentHTML('beforeend', '<li class="item feed disabled" dropzone="move"><div class="alert-warn">' + context.i18n.category_empty + '</div></li>'); + if (p.childElementCount <= 1) { + p.insertAdjacentHTML('afterbegin', '<li class="item feed disabled" dropzone="move"><div class="alert-warn">' + context.i18n.category_empty + '</div></li>'); } } } |
