Upgrade filebrowser; minor fixes relevant to the upgrade.
[redakcja.git] / src / redakcja / static / js / documents / book_list.js
index 9d2511d..2925809 100644 (file)
@@ -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;