mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Story#113524121 - update assets
This commit is contained in:
parent
cf3fce8055
commit
907da3d08e
9 changed files with 58545 additions and 4 deletions
|
@ -23060,7 +23060,26 @@ jQuery(function() {
|
|||
return form.find('.js-ident-tip').show();
|
||||
}
|
||||
});
|
||||
return $('.js-contact-form').trigger('restoreDefault');
|
||||
$('.js-contact-form').trigger('restoreDefault');
|
||||
return $('[data-legal_document]').each(function(e) {
|
||||
var fileInput, maxSize, minSize;
|
||||
fileInput = $(e.target);
|
||||
minSize = 1 * 1024;
|
||||
maxSize = 8 * 1024 * 1024;
|
||||
return fileInput.parent('form').submit(function(e) {
|
||||
var fileSize, files;
|
||||
if ((files = fileInput.get(0).files).length) {
|
||||
fileSize = files[0].size;
|
||||
if (fileSize < minSize) {
|
||||
alert('Document size is less then 100kB bytes');
|
||||
return false;
|
||||
} else if (fileSize < maxSize) {
|
||||
alert('Document size is more then 8MB bytes');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
}).call(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue