X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fweb%2Fviews%2Flist_books.tmpl;h=3fa406a1a351a92b60f3c8bb4df4f80cf09ea6f7;hb=HEAD;hp=79f29d39ccd78486e22e595aec678e558a199ccb;hpb=0a4b19cd1c2dd754d4c08aeca41cb18c22d178c2;p=m_librarian.git diff --git a/m_librarian/web/views/list_books.tmpl b/m_librarian/web/views/list_books.tmpl index 79f29d3..3127fec 100644 --- a/m_librarian/web/views/list_books.tmpl +++ b/m_librarian/web/views/list_books.tmpl @@ -1,5 +1,4 @@ #encoding utf-8 -#import cgi #from m_librarian.translations import translations #extends views.layout #attr $title = 'СпиÑок книг' @@ -15,6 +14,10 @@ function toggleBooks(selector, value) { } } +function toggleAll(value) { + toggleBooks('input[type=checkbox]', value); +} + function toggleAuthor(name, value) { toggleBooks('input[type=checkbox][name^=' + name + ']', value); } @@ -26,13 +29,15 @@ function toggleSeries(name, value) { #if $books_by_author +#filter WebSafe
+#end filter WebSafe #elseÐе найдено ни одной книги!
#end if