Skip to content

Commit

Permalink
updated jquery.mobile datebox
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Mar 7, 2012
1 parent 9d2b788 commit a51b4e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public_html/jquery_mobile/datebox/index.html
Expand Up @@ -25,7 +25,7 @@ <h1>出発日・日数選択</h1>
<div data-role="content"><!-- Contents Area Start --> <div data-role="content"><!-- Contents Area Start -->
<div data-role="fieldcontain" class="ui-hide-label"> <div data-role="fieldcontain" class="ui-hide-label">
<label for="mydate">宿泊日</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>
<div data-role="fieldcontain" class="ui-hide-label"> <div data-role="fieldcontain" class="ui-hide-label">
<label for="stay">泊数</label> <label for="stay">泊数</label>
Expand Down
Expand Up @@ -6,14 +6,15 @@ jQuery.extend(jQuery.mobile.datebox.prototype.options, {


$(function(){ $(function(){



// [Event] // [Event]
// 出発日のカレンダーを選ぶと泊数のselectboxにfocusを当てる // 出発日のカレンダーを選ぶと泊数のselectboxにfocusを当てる
$('#mydate').bind('datebox', function (e, passed) { $('#mydate').bind('datebox', function (e, passed) {
if ( passed.method === 'set' ) { if ( passed.method === 'set' ) {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
//DO SOMETHING// //DO SOMETHING//
console.log("setしますた"); console.log("setしますた");
$("#stay").selectmenu('open'); setTimeout('$("#stay").selectmenu('open');',300);
} }
}); });
}); });

0 comments on commit a51b4e6

Please sign in to comment.