X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/573b9004c7bc2a6a2b29335155b4ff55d142c6b6..309ec8b919d57858254b78cd7ba3b4d84d90da9a:/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() {