Changeset 2328 for trunk/phpgwapi
- Timestamp:
- 03/23/10 16:33:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/js/expressoAjax/expressoAjax.js
r2047 r2328 34 34 { 35 35 this.requests = new Array(); 36 this.hold_session = false; 36 37 this.oxmlhttp = null; 37 38 this.isVisibleBar = false; … … 48 49 49 50 } 50 51 cConnector.prototype.verify_session = function(data) { 52 if(data && data.nosession){ 53 // If hold session is setted, dont reload the page ... 54 if(expresso.connector.hold_session) { 55 if(typeof(write_msg) == "function" && typeof(get_lang) == "function") 56 write_msg(get_lang("your session could not be verified.")); 57 else 58 alert("your session could not be verified."); 59 } 60 else 61 window.location.reload(); 62 return false; 63 } 64 else 65 return true; 66 } 51 67 cConnector.prototype.buildBar = function() 52 68 { … … 339 355 if ( typeof data == 'undefined' ) 340 356 data = oxmlhttp.responseText; 357 // Verify user session 358 if(!_thisObject.verify_session(data)){ 359 delete _thisObject.requests[id]; 360 _thisObject.requests[id] = null; 361 return false; 362 } 341 363 if(debug_controller) { 342 364 document.getElementById("debug_controller").innerHTML += oxmlhttp.responseText;
Note: See TracChangeset
for help on using the changeset viewer.