Hook up compare revisions selector
This commit is contained in:
@@ -29,7 +29,6 @@ $(document).ready(function() {
|
||||
|
||||
$('#wiki-history td.revert-action a').mouseenter(highlightOn);
|
||||
$('#wiki-history td.revert-action a').mouseleave(highlightOff);
|
||||
}
|
||||
|
||||
if ($('td.revert-action a').length) {
|
||||
$('td.revert-action a').click(function(e) {
|
||||
@@ -50,6 +49,15 @@ $(document).ready(function() {
|
||||
});
|
||||
}
|
||||
|
||||
if ($('.history a.action-compare-revision').length) {
|
||||
$('.history a.action-compare-revision').click(function() {
|
||||
$("#version-form").submit();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($('#searchbar a#search-submit').length) {
|
||||
$.GollumPlaceholder.add($('#searchbar #search-query'));
|
||||
$('#searchbar a#search-submit').click(function(e) {
|
||||
|
||||
Reference in New Issue
Block a user