bookmarkable compare urls
This commit is contained in:
@@ -205,7 +205,8 @@ $(function(){
|
||||
|
||||
$('ul.inline-tabs').tabs()
|
||||
|
||||
var selectedRevisions = []
|
||||
var selectedRevisions = [];
|
||||
var baseCompareUrl = null
|
||||
|
||||
$('form#history input[type=checkbox]').change(function() {
|
||||
var id = $(this).val()
|
||||
@@ -225,7 +226,10 @@ $(function(){
|
||||
$('form#history input[type=submit]').attr('disabled', true)
|
||||
|
||||
if (selectedRevisions.length == 2) {
|
||||
$('form#history input[type=submit]').attr('disabled', false)
|
||||
if(!baseCompareUrl) baseCompareUrl = $('form#history').attr('action')
|
||||
var compareUrl = baseCompareUrl + "/" + selectedRevisions[1] + '...' + selectedRevisions[0]
|
||||
//$('form#history').attr('action', compareUrl)
|
||||
$('form#history input[type=submit]').attr('disabled', false).attr('method', 'get')
|
||||
var on = false
|
||||
$('form#history tr.commit').each(function() {
|
||||
if (on) { $(this).addClass("selected") }
|
||||
|
||||
Reference in New Issue
Block a user