← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4375: fixed problem with offline notification not show when offline

 

------------------------------------------------------------
revno: 4375
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-08-19 14:07:57 +0200
message:
  fixed problem with offline notification not show when offline
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.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/dhis2/dhis2.availability.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js	2011-08-18 13:34:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js	2011-08-19 12:07:57 +0000
@@ -27,9 +27,9 @@
 
 dhis2.util.namespace( 'dhis2.availability' );
 
-dhis2.availability._isAvailable = undefined;
+dhis2.availability._isAvailable = -1;
 dhis2.availability._isLoggedIn = -1;
-dhis2.availability._availableTimeoutHandler = undefined;
+dhis2.availability._availableTimeoutHandler = -1;
 
 /**
  * Start availability check, will trigger dhis2.online / dhis2.offline events

=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2011-08-19 11:45:05 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2011-08-19 12:07:57 +0000
@@ -68,9 +68,9 @@
         if ( loggedIn ) {
             if ( storageManager.hasLocalData() ) {
                 var message = i18n_need_to_sync_notification + ' <button id="sync_button" type="button">' + i18n_sync_now + '</button>';
-                
+
                 setHeaderMessage( message );
-                
+
                 $( '#sync_button' ).bind( 'click', uploadLocalData );
             }
             else