Author: jablko
Date: Sat Oct 23 09:32:05 2010
New Revision: 8399
Log:
Reattach date behavior
Modified:
trunk/js/dialog.js
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js Sat Oct 23 09:25:16 2010 (r8398)
+++ trunk/js/dialog.js Sat Oct 23 09:32:05 2010 (r8399)
@@ -419,6 +419,8 @@
// Clear autocomplete fields
$('input.form-autocomplete', this.table).val('');
+ Drupal.behaviors.date.attach(this.table.parentNode);
+
return this;
}
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
Sat Oct 23 09:25:16 2010 (r8398)
+++ trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
Sat Oct 23 09:32:05 2010 (r8399)
@@ -28,11 +28,11 @@
<h3><?php echo __('Date(s)') ?></h3>
<div>
<ul>
- <?php foreach ($resource->getDates() as $date): ?>
+ <?php foreach ($resource->getDates() as $item): ?>
<li>
- <?php echo
Qubit::renderDateStartEnd($date->getDateDisplay(array(cultureFallback =>
true)), $date->startDate, $date->endDate) ?> (<?php echo
$date->getType(array('cultureFallback' => true)) ?>)
- <?php if (isset($date->actor)): ?>
- <?php echo link_to(render_title($date->actor),
array($date->actor, 'module' => 'actor')) ?>
+ <?php echo
Qubit::renderDateStartEnd($item->getDateDisplay(array(cultureFallback =>
true)), $item->startDate, $item->endDate) ?> (<?php echo
$item->getType(array('cultureFallback' => true)) ?>)
+ <?php if (isset($item->actor)): ?>
+ <?php echo link_to(render_title($item->actor),
array($item->actor, 'module' => 'actor')) ?>
<?php endif; ?>
</li>
<?php endforeach; ?>
@@ -52,11 +52,11 @@
<?php echo get_component('informationobject', 'creatorDetail',
array('resource' => $resource)) ?>
- <?php foreach ($functionRelations as $relation): ?>
+ <?php foreach ($functionRelations as $item): ?>
<div class="field">
<h3><?php echo __('Related function')?></h3>
<div>
- <?php echo link_to($relation->subject->getLabel(),
array($relation->subject, 'module' => 'function')) ?>
+ <?php echo link_to($item->subject->getLabel(), array($item->subject,
'module' => 'function')) ?>
</div>
</div>
<?php endforeach; ?>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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/qubit-commits?hl=en.