Changeset 929 for trunk/modules/Dialogs


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/modules/Dialogs/dialog.js

    r694 r929  
    2828                init = window;  // pass this window object by default 
    2929        } 
    30         Dialog._geckoOpenModal(url, action, init); 
     30        if (typeof window.showModalDialog == 'function') 
     31        { 
     32                Dialog._return = function(retVal) { 
     33                        if (typeof action == 'function') action (retVal); 
     34                } 
     35                var r = window.showModalDialog(url, init, "dialogheight=10;dialogwidth=10;resizable=yes"); 
     36        } 
     37        else 
     38        { 
     39                Dialog._geckoOpenModal(url, action, init); 
     40        } 
    3141} 
    3242 
Note: See TracChangeset for help on using the changeset viewer.