From 0b6710aed7fc9a9412a975c9f70d3fd6a87c4b02 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 27 Sep 2010 10:44:04 -0400 Subject: Progressbar: Added a complete event. Fixes #3500 - Progressbar callback at the end. --- ui/jquery.ui.progressbar.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/jquery.ui.progressbar.js') diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js index e0b728f1a..5347e026b 100644 --- a/ui/jquery.ui.progressbar.js +++ b/ui/jquery.ui.progressbar.js @@ -64,6 +64,9 @@ $.widget( "ui.progressbar", { this.options.value = value; this._refreshValue(); this._trigger( "change" ); + if ( this._value() === this.max ) { + this._trigger( "complete" ); + } } $.Widget.prototype._setOption.apply( this, arguments ); -- cgit v1.2.3