Upgrade filebrowser; minor fixes relevant to the upgrade.
[redakcja.git] / src / redakcja / static / js / documents / book_list.js
index 0f03f4a..2925809 100644 (file)
@@ -13,7 +13,7 @@
        return $.map($("input[name=select_chunk]:checked"), function(ele, idx) {
            return ele.value;
            }).concat(
        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();
    };
                    return $(ele).attr("data-chunk-id");
                    })).join();
    };
@@ -38,7 +38,7 @@
 
     var get_items = function(field, callback) {
         var d = {};
 
     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(), 
             function(idx, ele) {
                 d[field + "_" + idx] = {
                     name: $(ele).text(),