Browse Source

fixed

master
Pascal Gloor 5 years ago
parent
commit
e6149a95c0
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      www/js/autodoc.js

+ 4
- 1
www/js/autodoc.js View File

@@ -66,6 +66,9 @@ $(document).ready(function () {
$('input.autodoc_home_modal_name').change(function(e) {
var docid = $('#autodoc_home_modal').data('documentid');
document_update_name(docid, $(e.target).val());
$('span.autodoc_home_modal_name').removeClass('d-none');
$('input.autodoc_home_modal_name').addClass('d-none');

home_modal_open(docid);
});
});
@@ -466,7 +469,7 @@ function home_modal_open(docid) {
}
}
$('span.autodoc_home_modal_name').html(data.name ? data.name : 'n/a');
$('input.autodoc_home_modal_name').val(data.name ? data.name : 'n/a');
$('input.autodoc_home_modal_name').val(data.name ? data.name : '');
$('.autodoc_home_modal_created').html(data.created);
$('.autodoc_home_modal_languages').html(data.languages.join(' '));
$('.autodoc_home_modal_pages').html(data.pageId.length);

Loading…
Cancel
Save