diff options
Diffstat (limited to 'python/Dawn')
| -rw-r--r-- | python/Dawn/static/dawn.js | 4 | ||||
| -rw-r--r-- | python/Dawn/templates/base.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/Dawn/static/dawn.js b/python/Dawn/static/dawn.js index f3f410ed..fcf3687d 100644 --- a/python/Dawn/static/dawn.js +++ b/python/Dawn/static/dawn.js @@ -18,7 +18,7 @@ $(function() { $('#security_desc').attr('list', 'index_list'); $('#security_desc').change(function(){ $.getJSON('../../_ajax', {bbg_id: $(this).val(), - trade_date: $('#trade_date').val()}). + trade_date: $('#trade_date').val()}). done(function(data) { $('#fixed_rate').val(data['coupon']/100); $('#security_id').val(data['redcode']); @@ -55,7 +55,7 @@ $(function() { }); $('#swap_type').change(); var datalist = $('#index_list'); - index_list.forEach(function(item){ + index_list.forEach(function(item) { var option = document.createElement('option'); option.value = item; datalist.append(option); diff --git a/python/Dawn/templates/base.html b/python/Dawn/templates/base.html index ab2c005d..3e261e42 100644 --- a/python/Dawn/templates/base.html +++ b/python/Dawn/templates/base.html @@ -3,7 +3,7 @@ <head> <meta charset="utf-8"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> - <link rel="stylesheet" href="../static/dawn.css"> + <link rel="stylesheet" href="{{url_for('static', filename='dawn.css')}}"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script> </head> |
