Closed (fixed)
Project:
Image javascript crop
Version:
5.x-1.x-dev
Component:
Javascript
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2008 at 17:41 UTC
Updated:
18 Aug 2008 at 10:32 UTC
This module is fantastic. Thank you for developing it!
Very simple change which allows thickbox alternative to opening a new browser window (note: thickbox module must be installed). The height and width can be adjusted as needed.
function imagecrop_formitem($fid, $weight = 0) {
$form = array(
'#type' => 'item',
'#value' => '<a class="thickbox" href="' . url('imagecrop/showcrop/'. $fid, NULL, NULL, TRUE) . '?height=600&width=600">'. t('Javascript crop') .'</a>',
'#weight' => $weight,
);
return $form;
}
Comments
Comment #1
swortis commentedActually.. use this instead:
Comment #2
swentel commentedI've been experimenting with it allready but somehow failed to get it working, I'll try out your code tonight or tomorrow!
Comment #3
swentel commentedcommited to drupal 5 branch, thanks.
*way* cool this feature!
Comment #4
swortis commentedMy pleasure.
(I'd be delighted to work on some CSS for the module if you need/want help in that department.)
Comment #5
swentel commentedCSS needs some cleanup, true. Texts too I think. Definitely for D6, but you're free to submit patches for the D5 version. I'm only going to concentrate on bugs right now for D5.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.