dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19980
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8953: Case entry, enabled caching of autocomplete
------------------------------------------------------------
revno: 8953
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-11-08 21:59:10 +0300
message:
Case entry, enabled caching of autocomplete
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm 2012-11-08 16:07:27 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm 2012-11-08 18:59:10 +0000
@@ -59,7 +59,7 @@
<input type="text" id='endDate' name='endDate' style="width:90px;">
</td>
<td>
- <input type="button" class='large-button' id='listBtn' value="$i18n.getString( 'update' )" onclick='validateSearchEvents( true );'>
+ <input type="button" class='large-button' id='listBtn' value="$i18n.getString( 'search' )" onclick='validateSearchEvents( true );'>
</td>
<td>
<input type="button" class='large-button' id='advancedBtn' value='$i18n.getString( "add_filter" )' onclick="filterDivToogle();" isShown="false" style="width:140px;">
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2012-11-08 04:13:48 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2012-11-08 18:59:10 +0000
@@ -605,6 +605,7 @@
$.ajax({
url: "getOptions.action?id=" + dataElementId + "&query=" + input.val(),
dataType: "json",
+ cache: true,
success: function(data) {
response($.map(data.options, function(item) {
return {