Changeset - ae750b5d7de0
[Not reviewed]
stable
0 1 0
Thomas De Schampheleire - 10 years ago 2015-10-11 22:09:11
thomas.de.schampheleire@gmail.com
bookmarks: fix 'compare bookmarks' button

Commit b0774d79c7c95ec14ec6d23389d85ed544dd4b50 broke the 'Compare
bookmarks' button on the repository bookmarks page, when attempting to
replace a Yahoo UI click handler with jQuery.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/bookmarks/bookmarks.html
Show inline comments
 
@@ -28,13 +28,13 @@ ${self.repo_context_bar('switch-to')}
 
    <div class="table">
 
        <%include file='bookmarks_data.html'/>
 
    </div>
 
</div>
 

	
 
<script type="text/javascript">
 
$('#compare_bookmarks','click',function(e){
 
$('#compare_bookmarks').click(function(e){
 
    e.preventDefault();
 
    var org = $('input[name=compare_org]:checked')[0];
 
    var other = $('input[name=compare_other]:checked')[0];
 

	
 
    if(org && other){
 
        var compare_url = "${h.url('compare_url',repo_name=c.repo_name,org_ref_type='book',org_ref_name='__ORG__',other_ref_type='book',other_ref_name='__OTHER__')}";
0 comments (0 inline, 0 general)