You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2019/06/07 16:36:13 UTC
[allura] 02/03: [#8302] make Sortable ignore our controls within
the screenshot row
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch db/8302
in repository https://gitbox.apache.org/repos/asf/allura.git
commit c0ef29104f375c8aeaff57d8555e51b7b8fca501
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Fri Jun 7 12:32:10 2019 -0400
[#8302] make Sortable ignore our controls within the screenshot row
---
Allura/allura/lib/widgets/resources/js/screenshots.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Allura/allura/lib/widgets/resources/js/screenshots.js b/Allura/allura/lib/widgets/resources/js/screenshots.js
index 87df2aa..533d3dc 100644
--- a/Allura/allura/lib/widgets/resources/js/screenshots.js
+++ b/Allura/allura/lib/widgets/resources/js/screenshots.js
@@ -34,7 +34,13 @@ $(function() {
var el = document.getElementsByClassName('sortable')[0];
if (el) {
- var sortable = Sortable.create(el, {onUpdate: updateSortOrder, animation: 150, delay: 50, forceFallback: 1});
+ var sortable = Sortable.create(el, {onUpdate: updateSortOrder,
+ animation: 150,
+ delay: 50,
+ forceFallback: 1,
+ filter: '.controls',
+ preventOnFilter: false,
+ });
}
$('.delete_screenshot_form').submit(function () {