// hide or show the batch update buttons on page startup window.document_list_count = <%= @document_list.count %>; toggleButtons(<%= !@empty_batch %>);