Permalink
Browse files

updated jquery.mobile datebox

  • Loading branch information...
1 parent 9d2b788 commit a51b4e687b530c36bb24e634ed5398ea25e32cd0 unknown committed Mar 7, 2012
@@ -25,7 +25,7 @@
<div data-role="content"><!-- Contents Area Start -->
<div data-role="fieldcontain" class="ui-hide-label">
<label for="mydate">宿泊日</label>
- <input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "calbox","useInline": true}'>
+ <input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "calbox","useInline": true, "useInlineHideInput": true}'>
</div>
<div data-role="fieldcontain" class="ui-hide-label">
<label for="stay">泊数</label>
@@ -6,14 +6,15 @@ jQuery.extend(jQuery.mobile.datebox.prototype.options, {
$(function(){
+
// [Event]
// 出発日のカレンダーを選ぶと泊数のselectboxにfocusを当てる
$('#mydate').bind('datebox', function (e, passed) {
if ( passed.method === 'set' ) {
e.stopImmediatePropagation();
//DO SOMETHING//
console.log("setしますた");
- $("#stay").selectmenu('open');
+ setTimeout('$("#stay").selectmenu('open');',300);
}
});
});

0 comments on commit a51b4e6

Please sign in to comment.