fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename publishable to approved, add profile option to approve by default.
[redakcja.git]
/
src
/
redakcja
/
static
/
js
/
wiki
/
view_history.js
diff --git
a/src/redakcja/static/js/wiki/view_history.js
b/src/redakcja/static/js/wiki/view_history.js
index
def2bb6
..
9ce518c
100644
(file)
--- a/
src/redakcja/static/js/wiki/view_history.js
+++ b/
src/redakcja/static/js/wiki/view_history.js
@@
-53,6
+53,12
@@
attr('disabled', null);
});
attr('disabled', null);
});
+ $(document).on('click', '#changes-list .entry .approved', function(){
+ $("#changes-list .entry.selected").removeClass('selected');
+ $(this).closest('.entry').click();
+ self.showPubmarkForm();
+ return false;
+ })
$(document).on('click', '#changes-list span.tag', function(event){
return false;
});
$(document).on('click', '#changes-list span.tag', function(event){
return false;
});
@@
-138,7
+144,8
@@
}
var version = parseInt($("*[data-stub-value='version']", selected[0]).text());
}
var version = parseInt($("*[data-stub-value='version']", selected[0]).text());
- $.wiki.showDialog('#pubmark_dialog', {'revision': version});
+ var approved = selected.attr('data-approved') == 'true';
+ $.wiki.showDialog('#pubmark_dialog', {'revision': version, 'approved': !approved});
}
makeDiff() {
}
makeDiff() {