X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e977f7187b10b1bc0a30794cd585c6b840568996..f067862049a3be1faa5ff1a2535ea6362cea23de:/src/redakcja/static/js/documents/book_list.js diff --git a/src/redakcja/static/js/documents/book_list.js b/src/redakcja/static/js/documents/book_list.js index 9d2511d4..29258090 100644 --- a/src/redakcja/static/js/documents/book_list.js +++ b/src/redakcja/static/js/documents/book_list.js @@ -13,7 +13,7 @@ return $.map($("input[name=select_chunk]:checked"), function(ele, idx) { return ele.value; }).concat( - $.map($("input[name=select_book][data-chunk-id!=]:checked"), function(ele, idx) { + $.map($("input[name=select_book][data-chunk-id]:checked"), function(ele, idx) { return $(ele).attr("data-chunk-id"); })).join(); }; @@ -38,7 +38,7 @@ var get_items = function(field, callback) { var d = {}; - $.each($("select[name="+field+"] option[value!=]"), + $.each($("select[name="+field+"] option[value]"), function(idx, ele) { d[field + "_" + idx] = { name: $(ele).text(), @@ -50,9 +50,7 @@ var user_callback = get_callback('user'); var users = [ - get_items("user", user_callback), - {sep: '----'}, - get_items("other-user", user_callback) + get_items("active-users", user_callback) ]; var current_user_items = user_items = {}; var i = 0;