dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #14144
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4683: Missing.
------------------------------------------------------------
revno: 4683
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-09-26 13:29:35 +0700
message:
Missing.
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.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/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2011-09-21 18:20:11 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2011-09-26 06:29:35 +0000
@@ -1349,6 +1349,13 @@
form.submit();
}
+function validateExportPDF()
+{
+ var exportButton = jQuery( 'input[type=button][id=exportPDF]' );
+ if ( byId( 'key' ).value != byId( 'oldKey' ).value ) exportButton.attr( 'disabled', true );
+ else exportButton.attr( 'disabled', false );
+}
+
/**
* Displays the div with the first argument id, and hides the divs with ids in
* the second array argument, except the id given in the first argument.