From 371bf98cdbfa024a1af5b5a5eb0e2491c4499412 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 10 Oct 2011 17:55:13 +0200 Subject: [PATCH] Add a init-time event to allow for configuring options as jquery does. --- js/jquery.mobile.datebox.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.datebox.js b/js/jquery.mobile.datebox.js index 631e33a2..0e520e41 100644 --- a/js/jquery.mobile.datebox.js +++ b/js/jquery.mobile.datebox.js @@ -1783,5 +1783,9 @@ $( document ).bind( "pagecreate", function( e ){ $( ":jqmData(role='datebox')", e.target ).datebox(); }); - + + // Trigger dateboxinit event - useful hook for configuring $.mobile.datebox + // settings before they're used + $( document ).trigger( "dateboxinit" ); + })( jQuery );