Author: david
Date: Mon Oct 19 16:35:29 2009
New Revision: 3770
Log:
Replace actor select box with an input field as a temporary fix for issue #1069.
Modified:
trunk/apps/qubit/modules/informationobject/templates/_eventForm.php
trunk/web/js/eventDialog.js
Modified: trunk/apps/qubit/modules/informationobject/templates/_eventForm.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/_eventForm.php Mon Oct
19 14:01:45 2009 (r3769)
+++ trunk/apps/qubit/modules/informationobject/templates/_eventForm.php Mon Oct
19 16:35:29 2009 (r3770)
@@ -20,13 +20,12 @@
<table id="newEvent" class="inline">
<caption><?php echo __('new event') ?></caption>
<tr>
- <td colspan ="2" class="headerCell" style="width: 55%;"><?php echo
__('name') ?></td>
+ <td colspan ="2" class="headerCell" style="width: 55%;"><?php echo
__('actor id') ?></td>
<td class="headerCell" style="width: 40%;"><i><?php echo __('or') ?>
</i><?php echo __('add new name') ?></td>
</tr>
<tr>
<td colspan ="2" class="noline">
- <?php echo select_tag('newEvent[actorId]',
QubitActor::getOptionsForSelectList(QubitTerm::CREATION_ID,
- array('include_blank' => true, 'cultureFallback' => true))) ?>
+ <input type="text" name="newEvent[actorId]" />
</td>
<td class="noline"><?php echo input_tag('newEvent[newActorName]')
?></td>
</tr>
Modified: trunk/web/js/eventDialog.js
==============================================================================
--- trunk/web/js/eventDialog.js Mon Oct 19 14:01:45 2009 (r3769)
+++ trunk/web/js/eventDialog.js Mon Oct 19 16:35:29 2009 (r3770)
@@ -339,8 +339,7 @@
var nameDisplay = '';
if (0 < actorId)
{
- var actorSelector = $('table#newEvent select[name="newEvent[actorId]"]');
- nameDisplay = actorSelector.find('option:selected').text();
+ nameDisplay = actorId;
}
else if (0 < thisEvent.data.newActorName.length)
{
@@ -394,7 +393,7 @@
this.fields = {
"typeId": {"type": "select", "value": null},
"placeId": {"type": "select", "value": null},
- "actorId": {"type": "select", "value": null},
+ "actorId": {"type": "input", "value": null},
"newActorName": {"type": "input", "value": null},
"startDate": {"type": "input", "value": null},
"endDate": {"type": "input", "value": null},
--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---