1/**
2 * Remove go button from translation dropdown
3 */
4jQuery(function(){
5    var $frm = jQuery('#translation__dropdown');
6    if(!$frm.length) return;
7    $frm.find('input[name=go]').hide();
8    $frm.find('select[name=id]').change(function(){
9        var id = jQuery(this).val();
10        // this should hopefully detect rewriting good enough:
11        var action = $frm.attr('action');
12            var link = action + '?id=' + id;
13        if(action.substr(action.length-1) == '/'){
14            link = action + id;
15        }
16
17        window.location.href=link;
18    });
19});
20