summaryrefslogtreecommitdiff
path: root/static/js/ishtar.js
blob: c1aa2f5698f5651c2558870e28c38729ee5cb1d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$(document).ready(function(){
    $("#main_menu ul ul").hide();
    $("#main_menu ul ul .selected").parent().show();
    var items = new Array('file', 'operation');
    $("#current_file").change(function(){
        $.post('/' + url_path + 'update-current-item/',
               {item:'file', value:$("#current_file").val()}
        );
    });
    $("#current_operation").change(function(){
        $.post('/' + url_path + 'update-current-item/',
               {item:'operation', value:$("#current_operation").val()}
        );
    });
});

$("#main_menu ul li").live('click', function(){
    $("#main_menu ul ul").hide('slow');
    $(this).find('ul').show('slow');
});