Author: a.izobov
Date: 2007-06-05 10:18:24 -0400 (Tue, 05 Jun 2007)
New Revision: 1019
Modified:
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-130 fixed
Modified:
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-06-05
13:53:38 UTC (rev 1018)
+++
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-06-05
14:18:24 UTC (rev 1019)
@@ -407,8 +407,10 @@
}
this.id.style.visibility = "";
-
- if (this.eventOnShow) this.eventOnShow();
+
+ var event = {};
+ event.parameters = opts || {};
+ if (this.eventOnShow) this.eventOnShow(event);
},
startDrag: function(border) {
@@ -424,7 +426,7 @@
}
},
- hide: function() {
+ hide: function(opts) {
//this.enableDocumentFocusElements();
this.traverseSelects(true);
@@ -454,7 +456,9 @@
this.floatedToBody = false;
}
- if (this.eventOnHide) this.eventOnHide();
+ var event = {};
+ event.parameters = opts || {};
+ if (this.eventOnHide) this.eventOnHide(event);
},
doResizeOrMove: function(diff) {
@@ -614,10 +618,10 @@
panel.modalPanel.show(opts);
}
-Richfaces.hideModalPanel = function (id) {
+Richfaces.hideModalPanel = function (id, opts) {
var panel = $(id + "Container");
if (!panel) {
panel = Richfaces.findModalPanel(id);
}
- panel.modalPanel.hide();
+ panel.modalPanel.hide(opts);
}