# HG changeset patch # User Takumi IINO # Date 2015-10-25 17:09:06 # Node ID c6dcda2c9402c4cb541eae4ab92d1b3569bcfb55 # Parent a33448d81f705eb41a5f90fd35e6cb1df481b827 select2: make "Switch To" switch to changelog view everywhere, except in Files context When already in changelog context, it will apply the change to the existing branch_filter. diff --git a/kallithea/templates/base/base.html b/kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html +++ b/kallithea/templates/base/base.html @@ -269,8 +269,12 @@ 'f_path': '', 'at': e.choice.text }); - } - else if(context == 'summary' || context == 'changelog') { + } else if (context == 'changelog') { + if (e.choice.type == 'tag' || e.choice.type == 'book') { + $("#branch_filter").append($('