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/plugins/ImageManager/assets/dialog.js

    r677 r929  
    1919                init = window;  // pass this window object by default 
    2020        } 
    21         Dialog._geckoOpenModal(url, action, init); 
     21        if (typeof window.showModalDialog == 'function') 
     22        { 
     23                Dialog._return = action; 
     24                var r = window.showModalDialog(url, init, "dialogheight=10;dialogwidth=10;resizable=yes"); 
     25        } 
     26        else 
     27        { 
     28                Dialog._geckoOpenModal(url, action, init); 
     29        } 
    2230} 
    2331 
Note: See TracChangeset for help on using the changeset viewer.