glib-web 4.36.5 → 4.36.6
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: 856adcd5c9413538d7389033e44745c2fe061c9be559be586344ae5c62a8de5e
|
4
|
+
data.tar.gz: 6dcb1317556c67ac2200b1d8f6802f6aebfb9b45545bccd6561aafe6b5639427
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ee5623914d2409fd8a6cdf6a238e5b12724fb87edc88355aafe4c2fa9ccef9750f7672789a0d46d0484587ce872cb814ac3a9aba075eaac5cec92bcaf1c3af
|
7
|
+
data.tar.gz: 3efc17ea1b9eb7c930e014f776de41a760cd3867e95724096451c5d85511d5c8ba6b5a9883d61a19fdc32a3264ecde7a03a7d580331dc17e4b9a52f0d4305ed5
|
@@ -357,12 +357,16 @@ module Glib::Json::Libs
|
|
357
357
|
view: 'button',
|
358
358
|
text: 'Refresh',
|
359
359
|
onClick: {
|
360
|
-
action: '
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
360
|
+
action: 'auth/saveCsrfToken',
|
361
|
+
token: form_authenticity_token,
|
362
|
+
onSave: {
|
363
|
+
action: 'dialogs/close',
|
364
|
+
onClose: {
|
365
|
+
action: 'windows/reload',
|
366
|
+
onReload: {
|
367
|
+
action: 'snackbars/alert',
|
368
|
+
message: 'Refreshed. You can try again now.'
|
369
|
+
}
|
366
370
|
}
|
367
371
|
}
|
368
372
|
}
|
@@ -241,13 +241,13 @@ class Glib::JsonUi::ViewBuilder
|
|
241
241
|
json.autofocus @autofocus
|
242
242
|
|
243
243
|
json.childViews do
|
244
|
-
if @method != :get
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
end
|
244
|
+
# if @method != :get
|
245
|
+
# json.child! do
|
246
|
+
# json.view 'fields/hidden'
|
247
|
+
# json.name 'authenticity_token'
|
248
|
+
# json.value page.context.form_authenticity_token
|
249
|
+
# end
|
250
|
+
# end
|
251
251
|
|
252
252
|
if page.current_form
|
253
253
|
raise 'Nested form is not allowed'
|