Skip to content
Permalink
Browse files

Increase flexibility wrt to classnames

  • Loading branch information...
flack committed Aug 11, 2019
1 parent c0642dd commit 597c0adefa033e0405c6d5e88412cd9167478e49
Showing with 2 additions and 2 deletions.
  1. +2 −2 static/midcom.datamanager/subform.js
@@ -8,7 +8,7 @@ function init_subform(id, sortable) {
}),
index = 0;

container.on('click', 'a.button.remove-item', function(e) {
container.on('click', 'a.remove-item', function(e) {
e.preventDefault();
$(this).parent().remove();
if ( container.data('max-count') > 0
@@ -31,7 +31,7 @@ function init_subform(id, sortable) {

if (sortable === true) {
container
.sortable({items: '> :not(.button.add-item)'})
.sortable({items: '> :not(a.add-item)'})
.on('sortupdate', function() {
$($(this).find('> .ui-sortable-handle').get().reverse()).each(function(index, element) {
$('#' + $(element).attr('id') + '_score').val(index);

0 comments on commit 597c0ad

Please sign in to comment.
You can’t perform that action at this time.