fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change field length.
[redakcja.git]
/
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
0249384
..
7d0126e
100644
(file)
--- a/
src/redakcja/static/js/wiki/dialog_pubmark.js
+++ b/
src/redakcja/static/js/wiki/dialog_pubmark.js
@@
-9,8
+9,9
@@
if (!options.revision && options.revision != 0)
throw "PubmarkDialog needs a revision number.";
if (!options.revision && options.revision != 0)
throw "PubmarkDialog needs a revision number.";
+ let ctx = $.wiki.exitContext();
super(element);
super(element);
- this.ctx =
$.wiki.exitContext()
;
+ this.ctx =
ctx
;
this.clearForm();
/* fill out hidden fields */
this.clearForm();
/* fill out hidden fields */
@@
-18,7
+19,11
@@
$("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() {