fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade filebrowser; minor fixes relevant to the upgrade.
[redakcja.git]
/
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
9d2511d
..
2925809
100644
(file)
--- 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(
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(),
@@
-50,9
+50,7
@@
var user_callback = get_callback('user');
var users = [
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;
];
var current_user_items = user_items = {};
var i = 0;