fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13ac01
)
publishable checked when last change is marked publishable
author
Jan Szejko
<janek37@gmail.com>
Thu, 24 Nov 2016 15:25:14 +0000
(16:25 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 24 Nov 2016 15:25:14 +0000
(16:25 +0100)
src/editor/modules/data/data.js
patch
|
blob
|
history
diff --git
a/src/editor/modules/data/data.js
b/src/editor/modules/data/data.js
index
6e8ec93
..
789899c
100644
(file)
--- a/
src/editor/modules/data/data.js
+++ b/
src/editor/modules/data/data.js
@@
-201,6
+201,9
@@
return function(sandbox) {
if (field.name.indexOf('for_cybernauts') !== -1) {
field.checked = event.formData['textsave-for_cybernauts'] === 'on';
}
+ if (field.name.indexOf('publishable') !== -1) {
+ field.checked = event.formData['textsave-publishable'] === 'on';
+ }
});
event.success();
sandbox.publish('savingEnded', 'success', 'remote', data);