Skip to content

Commit 907683b

Browse files
committed
Adds images-url
1 parent 830c108 commit 907683b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

vendor/assets/javascripts/jquery-fileupload/jquery.fileupload-ui.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
autoUpload: false,
4545
// The following option limits the number of files that are
4646
// allowed to be uploaded using this widget:
47-
maxNumberOfFiles: undefined,
47+
maxNumberOfFiles: 15,
4848
// The maximum allowed file size:
49-
maxFileSize: undefined,
49+
maxFileSize: 3500000,
5050
// The minimum allowed file size:
51-
minFileSize: undefined,
51+
minFileSize: 10000,
5252
// The regular expression for allowed file types, matches
5353
// against either file type or file name:
5454
acceptFileTypes: /.+$/i,
@@ -454,22 +454,22 @@
454454
// maxNumberOfFiles before validation, so we check if
455455
// maxNumberOfFiles is below 0 (instead of below 1):
456456
if (this.options.maxNumberOfFiles < 0) {
457-
return 'Maximum number of files exceeded';
457+
return "Превышено максимальное количество файлов";
458458
}
459459
// Files are accepted if either the file type or the file name
460460
// matches against the acceptFileTypes regular expression, as
461461
// only browsers with support for the File API report the type:
462462
if (!(this.options.acceptFileTypes.test(file.type) ||
463463
this.options.acceptFileTypes.test(file.name))) {
464-
return 'Filetype not allowed';
464+
return "Неправильный тип файла";
465465
}
466466
if (this.options.maxFileSize &&
467467
file.size > this.options.maxFileSize) {
468-
return 'File is too big';
468+
return "Файл слишком большой";
469469
}
470470
if (typeof file.size === 'number' &&
471471
file.size < this.options.minFileSize) {
472-
return 'File is too small';
472+
return "Файл слишком маленький";
473473
}
474474
return null;
475475
},

vendor/assets/stylesheets/jquery.fileupload-ui.scss renamed to vendor/assets/stylesheets/jquery.fileupload-ui.css.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
.files .progress {
3737
width: 200px;
3838
}
39+
// .progress-animated .progress-bar,
3940
.progress-animated .bar {
4041
background: image-url('progressbar.gif') !important;
4142
filter: none;

0 commit comments

Comments
 (0)