Author: nbelaevski
Date: 2007-05-24 08:56:56 -0400 (Thu, 24 May 2007)
New Revision: 865
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/modalPanelBorders.js
Log:
http://jira.jboss.com/jira/browse/RF-194 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-05-24
01:25:43 UTC (rev 864)
+++
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-05-24
12:56:56 UTC (rev 865)
@@ -254,10 +254,6 @@
show: function(opts) {
//this.disableDocumentFocusElements();
- this.onSelectStartHandler = document.onselectstart;
-
- document.onselectstart = function () { return false; };
-
if (!this.floatedToBody) {
document.body.appendChild(this.id.parentNode.removeChild(this.id));
this.floatedToBody = true;
@@ -420,8 +416,6 @@
hide: function() {
//this.enableDocumentFocusElements();
- document.onselectstart = this.onSelectStartHandler;
-
this.traverseSelects(true);
if (this.div.style.removeExpression) {
Modified:
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanelBorders.js
===================================================================
---
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanelBorders.js 2007-05-24
01:25:43 UTC (rev 864)
+++
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanelBorders.js 2007-05-24
12:56:56 UTC (rev 865)
@@ -35,6 +35,9 @@
this.modalPanel.cursorDiv.style.zIndex = 8;
this.modalPanel.startDrag(this);
+
+ this.onselectStartHandler = document.onselectstart;
+ document.onselectstart = function() { return false; }
},
doDrag: function(event) {
@@ -100,6 +103,8 @@
this.modalPanel.doResizeOrMove(ModalPanel.Sizer.Diff.EMPTY);
this.modalPanel.cursorDiv.style.zIndex = -200;
+
+ document.onselectstart = this.onselectStartHandler;
},
doPosition: function() {