Ignore:
Timestamp:
01/09/08 21:10:59 (12 years ago)
Author:
ray
Message:
  • #1115 Dialogs not working on firefox 3
  • #1127 InsertImage? and probably other things using insertNodeAtSelection() not working in FF3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/ext_example-menu.php

    r901 r929  
    111111 
    112112function Dialog(url, action, init) { 
    113   if (typeof init == "undefined") { 
    114     init = window;      // pass this window object by default 
    115   } 
    116   Dialog._geckoOpenModal(url, action, init); 
     113        if (typeof init == "undefined") { 
     114                init = window;  // pass this window object by default 
     115        } 
     116        if (typeof window.showModalDialog == 'function') 
     117        { 
     118                Dialog._return = action; 
     119                var r = window.showModalDialog(url, init, "dialogheight=10;dialogheight=10;scroll=no;resizable=yes"); 
     120        } 
     121        else 
     122        { 
     123                Dialog._geckoOpenModal(url, action, init); 
     124        } 
    117125}; 
    118126 
Note: See TracChangeset for help on using the changeset viewer.