Changeset 797 for trunk/popups


Ignore:
Timestamp:
03/27/07 23:14:46 (13 years ago)
Author:
ray
Message:

some work on the loading messages.

  • added functions for adding loading messages for textareas (before Xinha has loaded)
  • moved creating of loading message into separate function
  • added translations (translators see wiki/TranslationChanges)

_getback() & _loadback(): added URL to error message

added function to calculate the page size

some changes in popups.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/popups/popup.js

    r740 r797  
    4545  if(window.__dlg_init_done) return true; 
    4646   
    47   if(window.opener._editor_skin != "") { 
     47  if(window.opener._editor_skin) { 
    4848    var head = document.getElementsByTagName("head")[0]; 
    4949    var link = document.createElement("link"); 
     
    5555        window.dialogArguments = opener.Dialog._arguments; 
    5656 
    57   var body = document.body; 
     57  var page = Xinha.pageSize(window); 
    5858  if ( !win_dim ) 
    5959  { 
    60    var dim = Xinha.viewportSize(window); 
    61     win_dim = {width:dim.x, height: body.scrollHeight}; 
     60    win_dim = {width:page.x, height: page.y}; 
    6261  } 
    6362  window.resizeTo(win_dim.width, win_dim.height); 
    6463 
    6564  var dim = Xinha.viewportSize(window); 
    66   window.resizeBy(0, body.scrollHeight - dim.y); 
     65 
     66  window.resizeBy(0, page.y - dim.y); 
    6767 
    6868  if(win_dim.top && win_dim.left) 
Note: See TracChangeset for help on using the changeset viewer.