Fix for covers generation.
[redakcja.git] / src / redakcja / static / js / wiki / dialog_pubmark.js
index 6d20493..7d0126e 100644 (file)
 
             $("input[name='pubmark-id']", this.$form).val(CurrentDocument.id);
             $("input[name='pubmark-revision']", this.$form).val(options.revision);
 
             $("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() {
         }
 
         cancelAction() {