dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12072
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3604: added button for filtering DE/I in selection box (will be replaced by paging later). This to fix ...
------------------------------------------------------------
revno: 3604
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-05-12 22:57:51 +0200
message:
added button for filtering DE/I in selection box (will be replaced by paging later). This to fix performance problems with several thousand items.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/viewDataEntryForm.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewDataEntryForm.vm
--
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-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/viewDataEntryForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/viewDataEntryForm.js 2011-05-12 13:22:44 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/viewDataEntryForm.js 2011-05-12 20:57:51 +0000
@@ -75,6 +75,24 @@
$("#showSelectionBoxButton").button("option", "icons", { primary: "ui-icon-newwin" });
$("#cancelButton").button("option", "icons", { primary: "ui-icon-cancel" });
$("#delete").button("option", "icons", { primary: "ui-icon-trash" });
+
+ $("#dataElementsFilterButton").button({
+ icons: {
+ primary: "ui-icon-search"
+ },
+ text: false
+ }).click(function() {
+ filterSelectList( 'dataElementSelector', $("#dataElementsFilterInput").val() );
+ });
+
+ $("#indicatorsFilterButton").button({
+ icons: {
+ primary: "ui-icon-search"
+ },
+ text: false
+ }).click(function() {
+ filterSelectList( 'indicatorSelector', $("#indicatorsFilterInput").val() );
+ });
});
function showDataElements() {
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewDataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewDataEntryForm.vm 2011-05-12 11:54:50 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewDataEntryForm.vm 2011-05-12 20:57:51 +0000
@@ -36,7 +36,7 @@
<style type="text/css">
#message_{
display:block;
- color:red;
+ color:red;
}
.ui-state-active2, .ui-widget-content .ui-state-active2, .ui-widget-header .ui-state-active2 {
@@ -117,8 +117,11 @@
<div id="tabs">
<table style="width: 100%;">
<tr id="dataElementsFilter">
- <td colspan="2">
- <input type="text" style="width: 100%; border: 1px inset #888; padding: 1px 0 1px 0;" onkeyup="filterSelectList( 'dataElementSelector', this.value )"/>
+ <td>
+ <input id="dataElementsFilterInput" type="text" style="width: 100%; border: 1px inset #888; padding: 1px 0 1px 0;" />
+ </td>
+ <td style="padding: 0; margin: 0; width: 20px; height: 20px;">
+ <button id="dataElementsFilterButton" style="width: 20px; height: 20px;">Search</button>
</td>
</tr>
@@ -138,8 +141,11 @@
</tr>
<tr id="indicatorsFilter">
- <td colspan="2">
- <input type="text" style="width: 100%; border: 1px inset #888; padding: 1px 0 1px 0;" onkeyup="filterSelectList( 'indicatorSelector', this.value )"/>
+ <td>
+ <input type="text" id="indicatorsFilterInput" style="width: 100%; border: 1px inset #888; padding: 1px 0 1px 0;" />
+ </td>
+ <td style="padding: 0; margin: 0; width: 20px; height: 20px;">
+ <button id="indicatorsFilterButton" style="width: 20px; height: 20px;">Search</button>
</td>
</tr>