This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
$(function(){
var btnUpload=$('#upload');
var status=$('#status');
new AjaxUpload(btnUpload, {
action: urlActionUpload,
name: 'uploadfile',
onSubmit: function(file, ext){
if (! (ext && /^(jpg|png|jpeg|gif)$/.test(ext))){
// extension is not allowed
status.text('tylko JPG, PNG oraz GIF');
return false;
}
//alert(urlActionUpload);
status.text('Wgrywam...');
},
onComplete: function(file, response){
//On completion clear the status
status.text('');
//Add uploaded file to list
//alert(response);
$('#PhotoDisplay', window.parent.document).html(response);
}
});
});