Widget:Multi upload bericht: verschil tussen versies
Uit Dorpsbelang Den Hout
(Nieuwe pagina aangemaakt met '<noinclude>{{Managed |Version=1.0 |Version notes=1.0 - First managed version |Short description= }} This is the '''Widget:Multi upload''' page. It should be called...') |
|||
Regel 24: | Regel 24: | ||
var counter = 0; | var counter = 0; | ||
− | var uuid = uuidv4(); | + | //var uuid = uuidv4(); |
var filedate = Date.now(); | var filedate = Date.now(); | ||
Regel 44: | Regel 44: | ||
console.log(values); | console.log(values); | ||
console.log('done'); | console.log('done'); | ||
− | + | // var codeid = document.createElement('input'); | |
− | + | // codeid.setAttribute('type','hidden') | |
− | + | // codeid.setAttribute('name','uuid') | |
− | + | // codeid.setAttribute('value', uuid) | |
− | + | // document.getElementById('files').closest('form').appendChild(codeid) | |
− | document.getElementById(' | + | document.getElementById('real-submit').click(); |
}); | }); | ||
Regel 134: | Regel 134: | ||
console.log(caption) | console.log(caption) | ||
− | var taskidel = document.querySelector('[name="mwwrite"]').value; | + | //var taskidel = document.querySelector('[name="mwwrite"]').value; |
− | + | // uuid = taskidel; | |
− | var newWikitextEdit = '{{ | + | var newWikitextEdit = '{{Bericht file|Bericht='+document.querySelector('input[name="Domein"]').value.replace('.','-')+'/'+document.querySelector('input[name="Titel"]').value.replace(' ','-')+'|Domein='+document.querySelector('input[name="Domein"]').value+'|File uploaded by=User:'+mw.user.getName()+'|type='+file.substr( file.length -3 )+'}}'; |
Versie van 19 aug 2020 13:06
This is the Widget:Multi upload page. It should be called in the following format:
{{#widget:Multi upload }}