Browse Source

update name

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

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

}); });


$('input.autodoc_home_modal_name').change(function(e) { $('input.autodoc_home_modal_name').change(function(e) {
home_modal_open($('#autodoc_home_modal').data('documentid'));
var docid = $('#autodoc_home_modal').data('documentid');
document_update_name(docid, $(e.target).val());
home_modal_open(docid);
}); });
}); });


function home_modal_close(docid) { function home_modal_close(docid) {
$('#autodoc_home_modal').modal('hide'); $('#autodoc_home_modal').modal('hide');
} }

function document_update_name(docid, name) {
$.ajax({
type: "PATCH",
url: conf.openapi + "/documents/" + docid + "?name=" + name,
data: null,
success: function(data) {

},
});
}

Loading…
Cancel
Save