3 // clicking on book checks chunks, too
4 $("input[name=select_book]").change(function(ev) {
6 $book.closest("table").find("input[name=select_chunk][data-book-id=" + $book.val() + "]").attr("checked", $book.is(':checked'));
9 // initialize context menu
11 var get_ids = function() {
12 return $.map($("input[name=select_chunk]:checked"), function(ele, idx) {
17 var set_stage = function(key, opt) {
18 var stage = $("select[name=stage] option[value!=]").eq(key).val();
19 $.post($('input[name=chunk_mass_edit_url]').val(),
24 function(data, status) {
25 location.reload(true);
31 selector: '#file-list',
35 items: $.map($("select[name=stage] option[value!=]"),