X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/454635a6a1b93154e38eb761ac1e7e403f165a81..3ca475c8e10c811633dec531772e18da6e5fa33d:/src/redakcja/static/js/wiki/dialog_pubmark.js diff --git a/src/redakcja/static/js/wiki/dialog_pubmark.js b/src/redakcja/static/js/wiki/dialog_pubmark.js index 6d20493c..7d0126e6 100644 --- a/src/redakcja/static/js/wiki/dialog_pubmark.js +++ b/src/redakcja/static/js/wiki/dialog_pubmark.js @@ -19,7 +19,11 @@ $("input[name='pubmark-id']", this.$form).val(CurrentDocument.id); $("input[name='pubmark-revision']", this.$form).val(options.revision); - + if (options.approved) { + $("input[name='pubmark-publishable']", this.$form).prop('checked'); + } else { + $("input[name='pubmark-publishable']", this.$form).removeProp('checked'); + } } cancelAction() {