SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 98ce722a authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix author form js 3

parent 3e9722b0
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,7 @@ var sort_form_list = function(list_el) {
$(list_el).sortable({handle: ".handle, li"})
.on('sortupdate', function() {
$.each($(list_el + ' > *'), function(index, el) {
$(el).find('input[name$=ORDER]').val(index);
console.log(index, el, list_el);
$(el).find('input[name$=ORDER]').val(index + 1);
});
}).trigger('sortupdate');
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment