Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated jquery.mobile datebox

  • Loading branch information...
commit a51b4e687b530c36bb24e634ed5398ea25e32cd0 1 parent 9d2b788
unknown authored
2  public_html/jquery_mobile/datebox/index.html
View
@@ -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>
3  public_html/jquery_mobile/datebox/jquery.mobile.datebox.action.js
View
@@ -6,6 +6,7 @@ jQuery.extend(jQuery.mobile.datebox.prototype.options, {
$(function(){
+
// [Event]
// 出発日のカレンダーを選ぶと泊数のselectboxにfocusを当てる
$('#mydate').bind('datebox', function (e, passed) {
@@ -13,7 +14,7 @@ $(function(){
e.stopImmediatePropagation();
//DO SOMETHING//
console.log("setしますた");
- $("#stay").selectmenu('open');
+ setTimeout('$("#stay").selectmenu('open');',300);
}
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.