fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ignore compiled css
[fnpeditor.git]
/
src
/
editor
/
modules
/
data
/
data.js
diff --git
a/src/editor/modules/data/data.js
b/src/editor/modules/data/data.js
index
0d556a2
..
6e8ec93
100644
(file)
--- a/
src/editor/modules/data/data.js
+++ b/
src/editor/modules/data/data.js
@@
-196,6
+196,12
@@
return function(sandbox) {
url: sandbox.getConfig().documentSaveUrl(data.document_id),
data: formData,
success: function(data) {
url: sandbox.getConfig().documentSaveUrl(data.document_id),
data: formData,
success: function(data) {
+ // ugly!
+ $.each(sandbox.getConfig().documentSaveForm.fields, function(i, field) {
+ if (field.name.indexOf('for_cybernauts') !== -1) {
+ field.checked = event.formData['textsave-for_cybernauts'] === 'on';
+ }
+ });
event.success();
sandbox.publish('savingEnded', 'success', 'remote', data);
event.success();
sandbox.publish('savingEnded', 'success', 'remote', data);