[richfaces-svn-commits] JBoss Rich Faces SVN: r5679 - branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Mon Jan 28 18:34:57 EST 2008
Author: nbelaevski
Date: 2008-01-28 18:34:57 -0500 (Mon, 28 Jan 2008)
New Revision: 5679
Modified:
branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-2095
Modified: branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-28 22:46:08 UTC (rev 5678)
+++ branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-28 23:34:57 UTC (rev 5679)
@@ -406,7 +406,7 @@
}
},
- show: function(event, opts) {
+ _show: function(event, opts, synchronous) {
this.preventFocus();
var element = this.id;
@@ -606,7 +606,7 @@
Element.hide(eCdiv);
element.style.visibility = "";
- setTimeout(function() {
+ var showFunction = function() {
Element.show(eCdiv);
this.lastOnfocus();
@@ -616,9 +616,23 @@
if (this.eventOnShow) this.eventOnShow(event);
this.shown = true;
- }.bind(this), 0);
+ };
+
+ if (synchronous) {
+ showFunction.call(this);
+ } else {
+ setTimeout(showFunction.bind(this), 0);
+ }
},
+ syncShow: function(event, opts) {
+ this._show(event, opts, true);
+ },
+
+ show: function(event, opts) {
+ this._show(event, opts, false);
+ },
+
startDrag: function(border) {
for (var k = 0; k < this.borders.length; k++ ) {
//this.borders[k].hide();
More information about the richfaces-svn-commits
mailing list