From 83cb467849e03e41fae376f96c8dd322631ed750 Mon Sep 17 00:00:00 2001 From: Bachurin Sergey Date: Thu, 4 Jun 2015 19:10:48 +0300 Subject: [PATCH] datepicker button --- project/static/css/style.css | 3 +-- project/static/js/commons.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/project/static/css/style.css b/project/static/css/style.css index 98cdf4c..654cc3e 100644 --- a/project/static/css/style.css +++ b/project/static/css/style.css @@ -359,8 +359,7 @@ ul { clear: both; list-style: none; margin: 0; padding: 0; } .nav {display: block;margin: 20px 0 0 0;font-size: 13px;} .nav:hover {display: block;margin: 20px 0 0 0;font-size: 13px;text-decoration:none;} -.has-datepicker { background: url(../img/icon-calendar.png) no-repeat scroll right 5px center #f8f8f8; } - +.ui-datepicker-trigger {display:inline-block;position:relative;left:-32px;top:7px;cursor:pointer;} #id_phone_code, #id_fax_code { width: 60px; } #accounts .account-delete a { text-decoration: none; } diff --git a/project/static/js/commons.js b/project/static/js/commons.js index f9283d6..4840d41 100644 --- a/project/static/js/commons.js +++ b/project/static/js/commons.js @@ -1,6 +1,6 @@ $(document).ready(function() { var show_cabinet = false; - $('.has-datepicker').datepicker({dateFormat: 'dd.mm.yy'}); + $('.has-datepicker').datepicker({dateFormat: 'dd.mm.yy', showOn:"button", buttonImageOnly:true, buttonImage:"/s/img/icon-calendar.png"}); $('#reasons').mouseout(function(e){ $('.extended-block').removeClass('active'); $('.extended-block-more').hide();