Merge branch 'master' of https://github.com/syntax24/OriginalGozareshgir
This commit is contained in:
@@ -850,8 +850,8 @@ function attachFileChangeHandler(fileInput, id, boxClass) {
|
||||
e.preventDefault();
|
||||
var fileInputFile = fileInput.files[0];
|
||||
|
||||
if (fileInputFile.size > 5000000) {
|
||||
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 5 مگابایت را انتخاب کنید.', 3500);
|
||||
if (fileInputFile.size > 50000000) {
|
||||
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 50 مگابایت را انتخاب کنید.', 3500);
|
||||
$(`#Command_Document${id}`).val('');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -546,8 +546,8 @@ function attachFileChangeHandler(fileInput, index) {
|
||||
$(fileInput).off('change').on('change', function () {
|
||||
let file = fileInput.files[0];
|
||||
|
||||
if (file.size > 5000000) {
|
||||
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 5 مگابایت را انتخاب کنید.', 3500);
|
||||
if (file.size > 50000000) {
|
||||
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 50 مگابایت را انتخاب کنید.', 3500);
|
||||
$(`#EditTask_Document${index}`).val('');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -626,8 +626,8 @@ function attachFileChangeHandler(fileInput, id, boxClass) {
|
||||
e.preventDefault();
|
||||
var fileInputFile = fileInput.files[0];
|
||||
|
||||
if (fileInputFile.size > 5000000) {
|
||||
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 5 مگابایت را انتخاب کنید.', 3500);
|
||||
if (fileInputFile.size > 50000000) {
|
||||
showAlertMessage('.alert-msg', 'لطفا فایل حجم کمتر از 50 مگابایت را انتخاب کنید.', 3500);
|
||||
$(`#Command_Document${id}`).val('');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user