dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12204
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3699: added filter-on-enter to filter inputs
------------------------------------------------------------
revno: 3699
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2011-05-22 21:28:36 +0200
message:
added filter-on-enter to filter inputs
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisPaging.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-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisPaging.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisPaging.js 2011-05-22 19:09:48 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisPaging.js 2011-05-22 19:28:36 +0000
@@ -239,6 +239,13 @@
methods.load("" + id);
});
+ $filter_input.keypress(function(e) {
+ if(e.keyCode == 13) {
+ $filter_button.click();
+ e.preventDefault();
+ }
+ });
+
$select_page.change(function() {
params.currentPage = +$(this).find(":selected").val();
settings.params = params;