summaryrefslogtreecommitdiffstats
path: root/src/docs/examples.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/examples.html')
-rw-r--r--src/docs/examples.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/docs/examples.html b/src/docs/examples.html
index 8410506..9f4881c 100644
--- a/src/docs/examples.html
+++ b/src/docs/examples.html
@@ -59,10 +59,16 @@ $('#ex_basic_3').intimidatetime({
<pre class="code">
-$('#ex_basic_4').intimidatetime({
+var $basicEx4 = $('#ex_basic_4').intimidatetime({
buttons: [
- { text: 'Done', action: function(inst){ inst.close(); } },
- { text: 'Now', action: function(inst){ inst.value( new Date() ); } }
+ {
+ text: 'Done',
+ action: function(e){ $basicEx4.intimidatetime('close'); return false; }
+ },
+ {
+ text: 'Now',
+ action: function(e){ $basicEx4.intimidatetime('value', new Date() ); return false; }
+ }
]
});
</pre>