X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/573b9004c7bc2a6a2b29335155b4ff55d142c6b6..0f2ac86f03177aebee66a3890120d9926272cf27:/src/redakcja/static/js/wiki/dialog_pubmark.js?ds=inline

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() {