Changeset 978 for trunk


Ignore:
Timestamp:
03/20/08 12:09:09 (11 years ago)
Author:
ray
Message:
  • #1160 Safari puts selected HTML near bottom if edited
  • #1157 FF3B3 and popups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Dialogs/dialog.js

    r929 r978  
    2828                init = window;  // pass this window object by default 
    2929        } 
    30         if (typeof window.showModalDialog == 'function') 
     30        if (typeof window.showModalDialog == 'function' && !Xinha.is_webkit) // webkit easily looses the selection with window.showModalDialog 
    3131        { 
    3232                Dialog._return = function(retVal) { 
    3333                        if (typeof action == 'function') action (retVal); 
    3434                } 
    35                 var r = window.showModalDialog(url, init, "dialogheight=10;dialogwidth=10;resizable=yes"); 
     35                var r = window.showModalDialog(url, init, "dialogheight=300;dialogwidth=400;resizable=yes"); 
    3636        } 
    3737        else 
     
    6161// the dialog will read it's args from this variable 
    6262Dialog._arguments = null; 
     63 
     64Dialog._selection = null; 
    6365 
    6466Dialog._geckoOpenModal = function(url, action, init) { 
Note: See TracChangeset for help on using the changeset viewer.