| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 // $Id: gallery_g2image.js,v 1.1.2.1 2008/06/10 12:56:35 profix898 Exp $ 2 3 function g2image_open(field) { 4 // Set some properties 5 var form = $('#'+field).parents('form').attr('id'); 6 var url = Drupal.settings.gallery.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 } 17 18 // BUEditor 19 function g2bueditor_open() { 20 if (editor.active) { 21 g2image_open(editor.active.textArea.id); 22 } 23 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |