Author: nbelaevski
Date: 2007-11-27 14:45:17 -0500 (Tue, 27 Nov 2007)
New Revision: 4299
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-1423
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-11-27
19:38:02 UTC (rev 4298)
+++
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-11-27
19:45:17 UTC (rev 4299)
@@ -451,7 +451,7 @@
}
},
- show: function(opts) {
+ show: function(event, opts) {
var element = $(this.id);
if(this.invokeEvent("show",event,null,element)){
this.preventFocus();
@@ -672,7 +672,7 @@
Selection.enableSelection(document.body);
},
- hide: function(opts) {
+ hide: function(event, opts) {
this.restoreFocus();
this.traverseSelects(true);
@@ -982,7 +982,7 @@
}
}
-Richfaces.showModalPanel = function (id, opts) {
+Richfaces.showModalPanel = function (id, opts, event) {
var invoke =
(RichFaces.MSIE == RichFaces.navigatorType()) ?
@@ -1007,16 +1007,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);
};