X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/25e7ab3df1f48cf819df12c5642df6ccf3c7500e..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 0f03f4a4..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(),