dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15289
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5471: added enable/disable methods to ouwt
------------------------------------------------------------
revno: 5471
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-12-19 11:08:19 +0100
message:
added enable/disable methods to ouwt
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.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/ouwt/ouwt.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js 2011-12-19 09:36:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js 2011-12-19 10:08:19 +0000
@@ -451,10 +451,22 @@
this.enable = function()
{
+ $( "#orgUnitTree" ).unblock();
};
- this.disable = function()
+ this.disable = function(message)
{
+ if(message === undefined ) {
+ $( "#orgUnitTree" ).block({message: null});
+ } else {
+ $( "#orgUnitTree" ).block({
+ message: message,
+ css: {
+ border: '1px solid black',
+ margin: '4px 10px'
+ }
+ });
+ }
};
}