diff options
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/ishtar.js | 17 | 
1 files changed, 10 insertions, 7 deletions
| diff --git a/static/js/ishtar.js b/static/js/ishtar.js index 653525a07..c1aa2f569 100644 --- a/static/js/ishtar.js +++ b/static/js/ishtar.js @@ -2,13 +2,16 @@ $(document).ready(function(){      $("#main_menu ul ul").hide();      $("#main_menu ul ul .selected").parent().show();      var items = new Array('file', 'operation'); -    for (idx in items){ -        $("#current_" + items[idx]).change(function(){ -            $.post('/' + url_path + 'update-current-item/', -                   {item:items[idx], value:$("#current_" + items[idx]).val()} -            ); -        }); -    } +    $("#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(){ | 
