summaryrefslogtreecommitdiff
path: root/chimere/static/chimere/js/menu-sort.js
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static/chimere/js/menu-sort.js')
-rw-r--r--chimere/static/chimere/js/menu-sort.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/chimere/static/chimere/js/menu-sort.js b/chimere/static/chimere/js/menu-sort.js
index ad1da39..37d0ddd 100644
--- a/chimere/static/chimere/js/menu-sort.js
+++ b/chimere/static/chimere/js/menu-sort.js
@@ -11,10 +11,14 @@ jQuery(function($) {
}
});
$('div.inline-group tbody tr').css('cursor', 'move');
- $('div.inline-group tbody tr td').each(function (idx){
- if($(this).is('*.field-order')){
- $(this).hide();
- $('div.inline-group thead th:nth-child('+idx+')').hide();
- }
+ $('div.inline-group').each(function(){
+ var par = $(this);
+ par.find('tbody tr td').each(
+ function (idx){
+ if($(this).is('*.field-order')){
+ $(this).hide();
+ par.find('thead th:nth-child('+idx+')').hide();
+ }
+ });
});
});