includes/clientside/static/functions.js
changeset 679 80bf9b8fe6aa
parent 677 2a263b598a2b
child 691 dab7850c098d
equal deleted inserted replaced
678:c5d4ce19e640 679:80bf9b8fe6aa
   357               to: '100%',
   357               to: '100%',
   358               duration: 1000
   358               duration: 1000
   359             })).start();
   359             })).start();
   360         }, 1000);
   360         }, 1000);
   361     }
   361     }
       
   362   return false;
   362 }
   363 }
   363 
   364 
   364 /**
   365 /**
   365  * Verify that a string is roughly a valid JSON object. Warning - this is only a very cheap syntax check.
   366  * Verify that a string is roughly a valid JSON object. Warning - this is only a very cheap syntax check.
   366  * @param string
   367  * @param string
   609 
   610 
   610 function whiteOutReportSuccess(whitey)
   611 function whiteOutReportSuccess(whitey)
   611 {
   612 {
   612   // fade the status indicator in and then out
   613   // fade the status indicator in and then out
   613   whitey.style.backgroundImage = 'url(' + scriptPath + '/images/check.png)';
   614   whitey.style.backgroundImage = 'url(' + scriptPath + '/images/check.png)';
   614   domOpacity(whitey, 60, 80, 500);
   615   if ( aclDisableTransitionFX )
   615   setTimeout(function()
   616   {
   616     {
   617     domObjChangeOpac(80, whitey);
   617       domOpacity(whitey, 60, 0, 500);
   618   }
   618     }, 750);
   619   else
       
   620   {
       
   621     domOpacity(whitey, 60, 80, 500);
       
   622     setTimeout(function()
       
   623       {
       
   624         domOpacity(whitey, 60, 0, 500);
       
   625       }, 750);
       
   626   }
   619   setTimeout(function()
   627   setTimeout(function()
   620     {
   628     {
   621       whitey.parentNode.removeChild(whitey);
   629       whitey.parentNode.removeChild(whitey);
   622     }, 1250);
   630     }, 1250);
   623 }
   631 }