こんにちは仲間のstackoverflow:ers、
MartinMilesichTimepickerプラグインと一緒にjQueryDatepickerプラグインを使用しています。日付ピッカーで日付をクリックするとウィジェットが閉じ、時間を選択する時間がないという事実を除いて、すべてがうまく機能します。
質問:日付をクリックしたときにウィジェットが閉じないようにし、代わりにユーザーに[完了]ボタン([showButtonPanel:true]オプションを有効にしたときに表示される)をクリックするか、クリックするように強制する方法があるかどうか疑問に思っています。ウィジェットの外。ユーザーがウィジェットを2回開く必要がないようにします。タイムピッカーのデモでオンラインでの動作を確認してください
この問題を解決するための助け、または正しい方向へのポインタさえもありがたいです!
詳細:Martinsダウンロードリンクから提供されたファイルを使用しています:http://milesich.com/tpdemo/timepicker-0.2.0.zip
- jquery-ui-1.7.2.custom.min.js
- timepicker.js(最新バージョン0.2.0)
これらは私が使用しているオプションです:
$(document).ready(function(){
$(".datepicker").datepicker({
duration: '',
showTime: true,
constrainInput: false,
stepMinutes: 5,
stepHours: 1,
time24h: true,
dateFormat: "yy-mm-dd",
buttonImage: '/static/images/datepicker.png',
buttonImageOnly: true,
firstDay: 1,
monthNames: ['Januari','Februari','Mars','April','Maj','Juni','Juli','Augusti','September','Oktober','November','December'],
showOn: 'both',
showButtonPanel: true
});
})