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

$('input.autodoc_home_modal_name').change(function(e) { $('input.autodoc_home_modal_name').change(function(e) {
var docid = $('#autodoc_home_modal').data('documentid'); var docid = $('#autodoc_home_modal').data('documentid');
document_update_name(docid, $(e.target).val()); 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); home_modal_open(docid);
}); });
}); });
} }
} }
$('span.autodoc_home_modal_name').html(data.name ? data.name : 'n/a'); $('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_created').html(data.created);
$('.autodoc_home_modal_languages').html(data.languages.join(' ')); $('.autodoc_home_modal_languages').html(data.languages.join(' '));
$('.autodoc_home_modal_pages').html(data.pageId.length); $('.autodoc_home_modal_pages').html(data.pageId.length);

Loading…
Cancel
Save