svn commit: r560300 - /lenya/trunk/src/modules/editors/resources/javascript/org.apache.lenya.editors.js

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: nettings
Date: Fri Jul 27 09:22:09 2007
New Revision: 560300

URL: http://svn.apache.org/viewvc?view=rev&rev=560300
Log:
some IE-related fixes: use correct window name without dashes, focus
window after opening.

Modified:
    lenya/trunk/src/modules/editors/resources/javascript/org.apache.lenya.editors.js

Modified: lenya/trunk/src/modules/editors/resources/javascript/org.apache.lenya.editors.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/resources/javascript/org.apache.lenya.editors.js?view=diff&rev=560300&r1=560299&r2=560300
==============================================================================
--- lenya/trunk/src/modules/editors/resources/javascript/org.apache.lenya.editors.js (original)
+++ lenya/trunk/src/modules/editors/resources/javascript/org.apache.lenya.editors.js Fri Jul 27 09:22:09 2007
@@ -229,7 +229,7 @@
     + "scrollbars=yes,"
     + "status=no,"
     + "resizable=yes,"
-    + "dependent=yes,"
+//  + "dependent=yes,"  not in IE6, and the moz people want to get rid of it, too...
     + "width=600,"
     + "height=700";
 
@@ -240,7 +240,7 @@
 
 
 org.apache.lenya.editors.generateUniqueWindowName = function() {
-  return new String("Lenya-" + Math.random().toString().substr(2));
+  return new String("Lenya_" + Math.random().toString().substr(2));
 }
 
 
@@ -272,6 +272,7 @@
         windowName,
         org.apache.lenya.editors.usecaseWindowOptions
       );
+      usecaseWindow.focus(); //IE6 likes to open windows in the back...
       break;
     default:
       alert("openUsecaseWindow: Unknown usecase '" + usecase + "'. This is likely a programming error.");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.