edit_move_all.js 1.1 KB

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. function opennamu_edit_move_all() {
  3. let lang_data = new FormData();
  4. lang_data.append('data', 'title_start_document title_end_document title_include_document move document_name');
  5. fetch('/api/v2/lang', {
  6. method : 'POST',
  7. body : lang_data,
  8. }).then(function(res) {
  9. return res.json();
  10. }).then(function(lang) {
  11. lang = lang["data"];
  12. document.getElementById('opennamu_edit_move_all').innerHTML = '' +
  13. '<input placeholder="' + lang['document_name'] + '"></input>' +
  14. '<hr class="main_hr"> ' +
  15. '<input placeholder="' + lang['document_name'] + '"></input>' +
  16. '<hr class="main_hr">' +
  17. '<select>' +
  18. '<option>' + lang['title_start_document'] + '</option>' +
  19. '<option>' + lang['title_end_document'] + '</option>' +
  20. '<option>' + lang['title_include_document'] + '</option>' +
  21. '</select>' +
  22. '<hr class="main_hr">' +
  23. '<button>' + lang['move'] + '</button>' +
  24. '';
  25. });
  26. }