glib-web 4.35.3 → 4.35.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f43a25bddae602f3006f9f75962217e4fc736dfdf0a5fc6c5bb8f7662fcff5d0
|
4
|
+
data.tar.gz: d927ddec574668cb4410835c1ad04052076ab8d18b1172d69881c906bc0bcce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9d47057c841b84141c4b6b89fd1100ea23f161c8ee6b24428e94c5bf5438a6c76541e5b1fddc3f25e5763da547653dea76c0b26091cbe471f8e736bc8be8daf
|
7
|
+
data.tar.gz: 261879367984016d4ed1f140209ab079d5bb31c85721ec56654f4c100d3d8e890327ba8752eb6b55b04ca492e65b8d0142f856107ff573825bffe8a81251d215
|
@@ -261,7 +261,7 @@ module Glib::Json::Libs
|
|
261
261
|
if glib_json_dialog_mode?
|
262
262
|
# Only do this in dialog mode because this seems to add to the rendering time
|
263
263
|
# (i.e. longer flicker time), presumably due to the use of things like `nextTick()`.
|
264
|
-
on_response = { action: 'dialogs/close', onClose:
|
264
|
+
on_response = { action: 'dialogs/close', onClose: on_response }
|
265
265
|
end
|
266
266
|
|
267
267
|
# Use onResponse because it is harder to guarantee that `onLoad` executes in Vuejs because it relies
|
@@ -7,7 +7,7 @@ module Glib
|
|
7
7
|
button: I18n.t('glib.accepts.max_file_size_error.button', default: nil) || 'Dismiss'
|
8
8
|
}
|
9
9
|
default_max_length_error = {
|
10
|
-
body: I18n.t('glib.accepts.max_file_length_error.body', default: nil) || 'Files exceed the maximum limit
|
10
|
+
body: I18n.t('glib.accepts.max_file_length_error.body', default: nil) || 'Files exceed the maximum limit',
|
11
11
|
button: I18n.t('glib.accepts.max_file_length_error.button', default: nil) || 'Dismiss'
|
12
12
|
}
|
13
13
|
|
@@ -46,7 +46,15 @@ page.form options.merge(childViews: ->(form) do
|
|
46
46
|
name: 'user[multi][]',
|
47
47
|
id: 'upload_1',
|
48
48
|
width: 360,
|
49
|
-
accepts: {
|
49
|
+
accepts: {
|
50
|
+
fileType: 'image',
|
51
|
+
maxFileSize: 10,
|
52
|
+
maxFileLength: 2,
|
53
|
+
maxFileLengthErrorText: {
|
54
|
+
body: 'try with a smaller number of files',
|
55
|
+
button: 'OK'
|
56
|
+
}
|
57
|
+
},
|
50
58
|
directUploadUrl: glib_direct_uploads_url,
|
51
59
|
uploadTitle: 'Files uploaded:',
|
52
60
|
storagePrefix: 'glib',
|
@@ -70,7 +78,10 @@ page.form options.merge(childViews: ->(form) do
|
|
70
78
|
name: 'user[multi2][]',
|
71
79
|
id: 'upload_2',
|
72
80
|
width: 360,
|
73
|
-
accepts: {
|
81
|
+
accepts: {
|
82
|
+
fileType: 'image',
|
83
|
+
maxFileSize: 5000
|
84
|
+
},
|
74
85
|
directUploadUrl: glib_direct_uploads_url,
|
75
86
|
uploadTitle: 'Files uploaded:',
|
76
87
|
onFinishUpload: ->(action) { action.forms_submit }
|
@@ -89,7 +100,7 @@ page.form options.merge(childViews: ->(form) do
|
|
89
100
|
form.fields_multiUpload \
|
90
101
|
name: 'user[multi3][]',
|
91
102
|
width: 360,
|
92
|
-
accepts: { fileType: 'image', maxFileSize: 100 },
|
103
|
+
accepts: { fileType: 'image', maxFileSize: 100, maxFileLength: 2 },
|
93
104
|
uploadTitle: 'Files uploaded:',
|
94
105
|
onFinishUpload: ->(action) { action.forms_submit }
|
95
106
|
|