Closed (fixed)
Project:
Simple Dialog
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2012 at 19:37 UTC
Updated:
12 Jun 2012 at 16:41 UTC
i am creating a simple dialog link using following code. i got error with false value(i.e 'resizable' =>false,). it is not genrating proper simple dialog link.
in the LINK its showns rel=resizable:;
$output='';
$args = array(
'text' => '<span>'.$text.'<span>',
'path' => $url,
'selector' => $selector,
'title' => $title,
'options' => array(
'width' => 530,
'resizable' =>false,
'position' => array('top', 200) // can be an array of xy values
),
'class' => array('my-link-class'),
);
$output = theme('simple_dialog_link', $args);
i have fixed this problem using following code.
FILE simple_dialog.module
LINE NO 216
if($value){
$dialog_options[] = $option_name . ':' . $value;
}
Replace with
if($value){
$dialog_options[] = $option_name . ':' . $value;
}else{
$dialog_options[] = $option_name . ':false' ;
}
Comments
Comment #1
drclaw commentedNice. Thanks for that. I'll add that in there and commit.
Comment #2
drclaw commentedThis has been committed (7.x-1.3). =)