From e33fb6ead50abc8abaad62376c940850b25e601f Mon Sep 17 00:00:00 2001 From: Gena Date: Fri, 12 Jun 2015 22:48:03 +0600 Subject: [PATCH] no message --- batiskaf/templates/jinja2/base.jinja | 2 +- static/js/_.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/batiskaf/templates/jinja2/base.jinja b/batiskaf/templates/jinja2/base.jinja index 2fcd551..d1672d9 100644 --- a/batiskaf/templates/jinja2/base.jinja +++ b/batiskaf/templates/jinja2/base.jinja @@ -386,7 +386,7 @@ - + {% endblock footer_scripts %} {% block jss %}{% endblock jss %} {% if messages %} diff --git a/static/js/_.js b/static/js/_.js index e6c7d63..642a59c 100644 --- a/static/js/_.js +++ b/static/js/_.js @@ -169,7 +169,7 @@ $(document).ready(function () { }); }); - function selectCity(value, index) { + function selectCity() { var city = $('#id_city').val(); var deliv = $('#id_deliv_type').val(); var cart_itogo = $('#cart-itogo').html(); @@ -197,12 +197,12 @@ $(document).ready(function () { } - $('#id_city').selecter({ - callback: selectCity - }); + $('#id_city').on('change', function() { + selectCity(); + }); - $('#id_deliv_type').selecter({ - callback: selectCity - }); + $('#id_deliv_type').on('change', function() { + selectCity(); + }); }); \ No newline at end of file