mirror of
https://github.com/unraid/webgui.git
synced 2026-01-18 23:50:12 -06:00
Update UserEdit.page
This commit is contained in:
@@ -119,7 +119,7 @@ $(function(){
|
||||
url:'/webGui/include/FileUpload.php',
|
||||
data:{"csrf_token":"<?=$var['csrf_token']?>"},
|
||||
beforeEach:function(file) {
|
||||
if (!file.type.match(/^image\/.*/)) {
|
||||
if (!file.type.match(/^image\/png/)) {
|
||||
swal({title:"Warning",text:"_(Only PNG images are allowed)_!",type:"warning",html:true,confirmButtonText:"_(Ok)_"});
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user