Author: michkinn
Date: 2010-04-14 17:01:37 +0200 (Wed, 14 Apr 2010)
New Revision: 29146
Modified:
plugins/sfDoctrineFBAutocompletePlugin/trunk/lib/widget/sfWidgetFormDoctrineFBAutocompleter.class.php
plugins/sfDoctrineFBAutocompletePlugin/trunk/modules/sfDoctrineFBAutocompleteJson/templates/listSuccess.json.php
Log:
Modified:
plugins/sfDoctrineFBAutocompletePlugin/trunk/lib/widget/sfWidgetFormDoctrineFBAutocompleter.class.php
===================================================================
---
plugins/sfDoctrineFBAutocompletePlugin/trunk/lib/widget/sfWidgetFormDoctrineFBAutocompleter.class.php
2010-04-14 14:35:26 UTC (rev 29145)
+++
plugins/sfDoctrineFBAutocompletePlugin/trunk/lib/widget/sfWidgetFormDoctrineFBAutocompleter.class.php
2010-04-14 15:01:37 UTC (rev 29146)
@@ -51,6 +51,8 @@
<script type="text/javascript">
jQuery(document).ready(function() {
+
+ jQuery("#%id% option").attr('selected','selected');
jQuery("#%id%").fcbkcomplete({
%json_url%
%cache%
@@ -116,7 +118,7 @@
$delay = $this->getOption('delay') ? 'delay :
"'.$this->getOption('delay').'",' : '' ;
- $associatedWidget = new sfWidgetFormSelect(array('multiple' => false,
'choices' => $associated));
+ $associatedWidget = new sfWidgetFormSelect(array('multiple' => true,
'choices' => $associated ));
return strtr($this->getOption('template'), array(
'%id%' => $this->generateId($name),
Modified:
plugins/sfDoctrineFBAutocompletePlugin/trunk/modules/sfDoctrineFBAutocompleteJson/templates/listSuccess.json.php
===================================================================
---
plugins/sfDoctrineFBAutocompletePlugin/trunk/modules/sfDoctrineFBAutocompleteJson/templates/listSuccess.json.php
2010-04-14 14:35:26 UTC (rev 29145)
+++
plugins/sfDoctrineFBAutocompletePlugin/trunk/modules/sfDoctrineFBAutocompleteJson/templates/listSuccess.json.php
2010-04-14 15:01:37 UTC (rev 29146)
@@ -1 +1 @@
-[<?php foreach($items as $item): ?>{"caption":"<?php echo $item->title;?>",
"value":<?php echo $item->id;?>},<?php endforeach;?>]
\ No newline at end of file
+[<?php foreach($items as $item): ?>{"caption":"<?php echo
addslashes($item);?>", "value":<?php echo $item->id;?>},<?php endforeach;?>]
\ No newline at end of file
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.