Author: david
Date: Fri Aug 14 11:22:35 2009
New Revision: 3036
Log:
Fix bug which would clear auto-complete field when selecting a preferred term.
Modified:
trunk/apps/qubit/modules/informationobject/templates/_termNameAutoComplete.php
Modified:
trunk/apps/qubit/modules/informationobject/templates/_termNameAutoComplete.php
==============================================================================
---
trunk/apps/qubit/modules/informationobject/templates/_termNameAutoComplete.php
Fri Aug 14 11:21:41 2009 (r3035)
+++
trunk/apps/qubit/modules/informationobject/templates/_termNameAutoComplete.php
Fri Aug 14 11:22:35 2009 (r3036)
@@ -66,7 +66,10 @@
// update hidden form field with the selected item's ID
subjectIdField.value = oData.preferredId;
- subjectInput.value = oData.preferredName;
+ if (undefined != oData.preferredName)
+ {
+ subjectInput.value = oData.preferredName;
+ }
};
subjectAutoComp.itemSelectEvent.subscribe(myHandler);
@@ -92,7 +95,10 @@
// update hidden form field with the selected item's ID
placeIdField.value = oData.preferredId;
- placeInput.value = oData.preferredName;
+ if (undefined != oData.preferredName)
+ {
+ placeInput.value = oData.preferredName;
+ }
};
placeAutoComp.itemSelectEvent.subscribe(myHandler);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---