From 75bfb681b99dbf2f96bd5ceff5ba927ec398fcbb Mon Sep 17 00:00:00 2001 From: Chi Cheng Date: Mon, 25 Aug 2008 05:47:48 +0000 Subject: Progressbar: hidden instance in ui(), options._interval->this._interval Update spinner/progressbar demos --- demos/functional/templates/ui.progressbar.html | 9 ++++----- demos/functional/templates/ui.spinner.html | 5 +++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'demos/functional') diff --git a/demos/functional/templates/ui.progressbar.html b/demos/functional/templates/ui.progressbar.html index 00aa2f9de..cb99c33a9 100644 --- a/demos/functional/templates/ui.progressbar.html +++ b/demos/functional/templates/ui.progressbar.html @@ -15,12 +15,11 @@ destroy: '$("#progressbar").progressbar("destroy");', options: [ { desc: 'Start a progressbar', source: '$("#progressbar").progressbar({interval:2000}); $("#progressbar").progressbar("start");' }, - { desc: 'With different increment', source: '$("#progressbar").progressbar({interval:2000, increment:100}); $("#progressbar").progressbar("start");' }, - { desc: 'Set progress to 50%', source: '$("#progressbar").progressbar("progress", 50);' }, - { desc: 'Loop', source: '$("#progressbar").progressbar({interval:2000}).progressbar("start");' }, + { desc: 'With different increment', source: '$("#progressbar").progressbar({interval:2000, increment:100}).progressbar("start");' }, + { desc: 'Set progress to 50%', source: '$("#progressbar").progressbar().progressbar("progress", 50);' }, { desc: 'Callback when finish', source: '$("#progressbar").progressbar({interval: 1000, stop:function(){alert("Finished");}}).progressbar("start");' }, - { desc: 'Enable the progressbar', source: '$("#progressbar").progressbar("enable");' }, - { desc: 'Disable the progressbar', source: '$("#progressbar").progressbar("disable");' } + { desc: 'Enable the progressbar', source: '$("#progressbar").progressbar().progressbar("enable");' }, + { desc: 'Disable the progressbar', source: '$("#progressbar").progressbar().progressbar("disable");' } ] } diff --git a/demos/functional/templates/ui.spinner.html b/demos/functional/templates/ui.spinner.html index 4ec12cc94..727fb8d44 100644 --- a/demos/functional/templates/ui.spinner.html +++ b/demos/functional/templates/ui.spinner.html @@ -17,9 +17,10 @@ { desc: 'Make a spinner', source: '$("#spinner").spinner();' }, { desc: 'A spinner with min and max value', source: '$("#spinner").spinner({min:-100, max:150});' }, { desc: 'Big stepping', source: '$("#spinner").spinner({stepping:100});' }, + { desc: 'Currency option', source: '$("#spinner").spinner({currency:"$"});' }, { desc: 'Disable incremental option', source: '$("#spinner").spinner({incremental:false});' }, - { desc: 'Enable the spinner', source: '$("#spinner").spinner().attr("disabled","");' }, - { desc: 'Disable the spinner', source: '$("#spinner").spinner().attr("disabled","disabled");' } + { desc: 'Enable the spinner', source: '$("#spinner").spinner().spinner("disable");' }, + { desc: 'Disable the spinner', source: '$("#spinner").spinner().spinner("enable");' } ] } -- cgit v1.2.3