Changeset 529 for trunk/style


Ignore:
Timestamp:
Apr 23, 2013, 7:12:53 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Výběr relací mezi tabulkami pomocí zobrazení samostatného okna s výběrovou tabulkou ve správě dat.
  • Přidáno: Možnost generovat jen základní HTML část stránky bez hlavičky a patičky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/style/new/global.js

    r433 r529  
    3838  return is_confirmed;
    3939}
     40
     41function popupwindow(url, title)
     42{
     43  var e = document.documentElement;
     44  var g = document.getElementsByTagName('body')[0];
     45  var w = window.innerWidth || e.clientWidth || g.clientWidth;
     46  var h = window.innerHeight|| e.clientHeight|| g.clientHeight;         
     47  w = (w * 0.9).toFixed();
     48  h = (h * 0.6).toFixed();
     49  if(w < 640) w = 640;
     50  if(h < 480) h = 480;
     51  var left = (screen.width / 2) - (w / 2);
     52  var top = (screen.height / 2) - (h / 2);
     53  return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
     54}
Note: See TracChangeset for help on using the changeset viewer.