Author: pyaschenko
Date: 2011-02-10 10:48:26 -0500 (Thu, 10 Feb 2011)
New Revision: 21611
Modified:
trunk/examples/core-demo/src/main/webapp/status.xhtml
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/status.js
Log:
https://jira.jboss.org/browse/RF-10405
Modified: trunk/examples/core-demo/src/main/webapp/status.xhtml
===================================================================
--- trunk/examples/core-demo/src/main/webapp/status.xhtml 2011-02-10 15:12:42 UTC (rev
21610)
+++ trunk/examples/core-demo/src/main/webapp/status.xhtml 2011-02-10 15:48:26 UTC (rev
21611)
@@ -15,7 +15,7 @@
}
</script>
- <a4j:status name="ilStatus" startText="...named status request
start..." />
+ <a4j:status id="myStatus" name="ilStatus"
startText="...named status request start..." />
<br />
<a4j:status startStyle="color: green" errorStyle="color: red"
onstart="selectEventSource(event.source, '3px dotted navy')"
Modified: trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/status.js
===================================================================
---
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/status.js 2011-02-10
15:12:42 UTC (rev 21610)
+++
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/status.js 2011-02-10
15:48:26 UTC (rev 21611)
@@ -137,25 +137,22 @@
},
stop: function() {
- if (this.options.onstop) {
- this.options.onstop.apply(this, arguments);
- }
+ this.__stop();
+ return this.__showHide('.rich-status-stop');
},
success: function() {
if (this.options.onsuccess) {
this.options.onsuccess.apply(this, arguments);
}
- this.stop();
-
- return this.__showHide('.rich-status-stop');
+ return this.stop();
},
error: function() {
if (this.options.onerror) {
this.options.onerror.apply(this, arguments);
}
- this.stop();
+ this.__stop();
return this.__showHide(':not(.rich-status-error) + .rich-status-stop,
.rich-status-error');
},
@@ -172,6 +169,12 @@
return true;
}
return false;
+ },
+
+ __stop: function () {
+ if (this.options.onstop) {
+ this.options.onstop.apply(this, arguments);
+ }
}
});
}(window.RichFaces, jQuery));