Author: nbelaevski
Date: 2007-11-27 14:38:02 -0500 (Tue, 27 Nov 2007)
New Revision: 4298
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-1423
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 2007-11-27
19:37:56 UTC (rev 4297)
+++
branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-11-27
19:38:02 UTC (rev 4298)
@@ -419,7 +419,7 @@
}
},
- show: function(opts) {
+ show: function(event, opts) {
this.preventFocus();
var element = $(this.id);
@@ -639,7 +639,7 @@
}
},
- hide: function(opts) {
+ hide: function(event, opts) {
this.restoreFocus();
this.traverseSelects(true);
@@ -900,7 +900,7 @@
}
}
-Richfaces.showModalPanel = function (id, opts) {
+Richfaces.showModalPanel = function (id, opts, event) {
var invoke =
("MSIE" == RichFaces.navigatorType()) ?
@@ -925,16 +925,16 @@
panel = Richfaces.findModalPanel(id);
}
invoke(function() {
- panel.component.show(opts);
+ panel.component.show(event, opts);
});
};
-Richfaces.hideModalPanel = function (id, opts) {
+Richfaces.hideModalPanel = function (id, opts, event) {
var panel = $(id);
if (!panel) {
panel = Richfaces.findModalPanel(id);
}
- panel.component.hide(opts);
+ panel.component.hide(event, opts);
};