Move to utils.js and remove old edit.js
This commit is contained in:
@@ -97,7 +97,8 @@ function ajaxWrapper(call_id, queryString = {}, control = {}, url = 'backend.php
|
||||
* uuid4 creator
|
||||
* @returns {String} uuid4
|
||||
*/
|
||||
function uuidv4() {
|
||||
function uuidv4() // eslint-disable-line no-unused-vars
|
||||
{
|
||||
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, c =>
|
||||
(+c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +c / 4).toString(16)
|
||||
);
|
||||
@@ -290,7 +291,7 @@ function fileUploadErrorFunction(target_file, file_pos, target_router, control_d
|
||||
}
|
||||
|
||||
// ** init here **/file-list
|
||||
$(document).ready(function () {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// run and fill uploaded
|
||||
var call_id = 'fileList';
|
||||
var queryString = {
|
||||
@@ -300,9 +301,10 @@ $(document).ready(function () {
|
||||
console.log('Data: %o', data);
|
||||
try {
|
||||
if (data.status == 'error') {
|
||||
//
|
||||
console.log('ERROR during data read');
|
||||
} else {
|
||||
$('#reference-id').val(data.content.reference_id);
|
||||
$('#file-list-reference-id').html(data.content.reference_id);
|
||||
// list files
|
||||
if (data.status == 'warn') {
|
||||
$('#file-info')
|
||||
|
||||
Reference in New Issue
Block a user