@@ -219,35 +219,35 @@ $(document).ready(function(){
});
// init the search filter
var _State = {
url: "${h.url.current()}",
data: {
node_list_url: node_list_url.replace('__REV__',"${c.changeset.raw_id}").replace('__FPATH__', "${h.safe_unicode(c.file.path)}"),
url_base: url_base.replace('__REV__',"${c.changeset.raw_id}"),
rev:"${c.changeset.raw_id}",
f_path: "${h.safe_unicode(c.file.path)}"
}
fileBrowserListeners(_State.url, _State.data.node_list_url, _State.data.url_base);
// change branch filter
$("#branch_selector").select2({
dropdownAutoWidth: true,
minimumInputLength: 1
$("#branch_selector").change(function(e){
var selected = e.currentTarget.options[e.currentTarget.selectedIndex].value;
if(selected && selected != "${c.changeset.raw_id}"){
window.location = pyroutes.url('files_home', {'repo_name': "${h.safe_unicode(c.repo_name)}", 'revision': selected, 'f_path': "${h.safe_unicode(c.file.path)}"});
$("#browserblock").hide();
$("#body.browserblock").hide();
} else {
$("#branch_selector").val("${c.changeset.raw_id}");
</script>
</%def>
Status change: