sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 32857 - http://anonsvn.icesoft.org/repo / icefaces3 / trunk / icefaces / ace / component / resources / icefaces.ace / datetimeentry / datetimeentry.js
Unified Diff View - datetimeentry.js
/icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js @ revision 32856
/icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js @ revision 32857
@@ -117,8 +117,16 @@         this.cfg.onSelect = function(dateText, input) {             var dateSelectBehavior = _self.cfg.behaviors['dateSelect']; -            if (dateSelectBehavior) +            if (dateSelectBehavior) { +                var inputID = input.input[0].id; +                dateSelectBehavior.oncomplete = function() { +                    var inputElement= document.getElementById(inputID); +                    $(inputElement).unbind('focus', $.datepicker._showDatepicker); +                    inputElement.focus(); +                    $(inputElement).bind('focus', $.datepicker._showDatepicker); +                };                 ice.ace.ab.call(_self, dateSelectBehavior); +            }         };     }     if (!behavior && this.cfg.singleSubmit) {


feed icon

sventon 2.5.1