/[drupal]/contributions/modules/gallery/g2image.js
ViewVC logotype

Contents of /contributions/modules/gallery/g2image.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Fri Nov 23 11:20:33 2007 UTC (2 years ago) by profix898
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
Changes since 1.2: +3 -10 lines
File MIME type: text/javascript
- very early D6 version (Oct-01, 2007)
1 // $Id: g2image.js,v 1.1.6.3 2007/09/10 18:04:08 profix898 Exp $
2
3 function g2ic_open(field) {
4 // Set some properties
5 var form = $('#'+field).parents('form').attr('id');
6 var url = Drupal.settings.gallery2.g2image_uri+'g2image.php?g2ic_form='+form+'&g2ic_field='+field+'&g2ic_tinymce=0';
7 var name = 'g2image';
8 var w = 600;
9 var h = 600;
10 var valLeft = (screen.width) ? (screen.width-w)/2 : 0;
11 var valTop = (screen.height) ? (screen.height-h)/2 : 0;
12 var features = 'width='+w+',height='+h+',left='+valLeft+',top='+valTop+',resizable=1,scrollbars=1';
13
14 // Open the G2Image window
15 window.open(url, name, features);
16 }

  ViewVC Help
Powered by ViewVC 1.1.2