galaxy-dist commit d73fa5f14b01: fixed select all checkbox in grid. the footer now updates when all items are selected
# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User rc # Date 1288121253 14400 # Node ID d73fa5f14b013333b2e49bfbf775db8dd0197e2b # Parent 314f8a5d38237c3f1fafccb522ee45aebfa8464f fixed select all checkbox in grid. the footer now updates when all items are selected --- a/templates/grid_base.mako +++ b/templates/grid_base.mako @@ -611,34 +611,27 @@ }); } - function check_all_items() - { + function check_all_items() { var chk_all = document.getElementById('check_all'); var checks = document.getElementsByTagName('input'); //var boxLength = checks.length; var total = 0; - if ( chk_all.checked == true ) - { - for ( i=0; i < checks.length; i++ ) - { - if ( checks[i].name.indexOf( 'id' ) != -1) - { + if ( chk_all.checked == true ) { + for ( i=0; i < checks.length; i++ ) { + if ( checks[i].name.indexOf( 'id' ) != -1) { checks[i].checked = true; total++; } } } - else - { - for ( i=0; i < checks.length; i++ ) - { - if ( checks[i].name.indexOf( 'id' ) != -1) - { + else { + for ( i=0; i < checks.length; i++ ) { + if ( checks[i].name.indexOf( 'id' ) != -1) { checks[i].checked = false } } } - + init_grid_elements(); } </script></%def>
participants (1)
-
commits-noreply@bitbucket.org