Remove unused 'disable_auto_focus' functionality
This commit is contained in:
@@ -428,7 +428,6 @@ def document_download(request, document_id=None, document_id_list=None, document
|
||||
'submit_label': _(u'Download'),
|
||||
'previous': previous,
|
||||
'cancel_label': _(u'Return'),
|
||||
'disable_auto_focus': True,
|
||||
}
|
||||
|
||||
if len(document_versions) == 1:
|
||||
|
||||
@@ -373,9 +373,6 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
{% if not disable_auto_focus %}
|
||||
$("input:text:visible:not(#livesearch):not([readonly]):enabled:first").focus();
|
||||
{% endif %}
|
||||
$('form').submit(function(){
|
||||
$('button', this).click(function() {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user