Periodic merge upstream #5
@@ -49,16 +49,19 @@ $(document).ready(function(){
 | 
			
		||||
                                        token: data.SecureToken
 | 
			
		||||
                                    }))
 | 
			
		||||
                                }
 | 
			
		||||
                            }).done(function() {
 | 
			
		||||
                            }).done(function(_data, _textStatus, jqXHR) {
 | 
			
		||||
                                NProgress.inc(1 / XHR.length);
 | 
			
		||||
                            }).fail(function() {
 | 
			
		||||
                                console.log('CrossDomain login succeeded for domain `' + domain + '` [' + JSON.stringify(jqXHR) + ']');
 | 
			
		||||
                            }).fail(function(jqXHR) {
 | 
			
		||||
                                console.log('CrossDomain login failed for domain `' + domain + '` [' + JSON.stringify(jqXHR) + ')]');
 | 
			
		||||
                                // Should check why this failed (timeout or bad request?), and if this is the origin domain, take action
 | 
			
		||||
                            }));
 | 
			
		||||
                        });
 | 
			
		||||
                        $.when.apply($, XHR).then(function(){
 | 
			
		||||
                            $.each(arguments, function(_index, _arg) {
 | 
			
		||||
                                // Finished cross-domain logins (either succesfully or through timeout)
 | 
			
		||||
                                // Finished cross-domain logins (either successfully or through timeout)
 | 
			
		||||
                                NProgress.done();
 | 
			
		||||
                                console.log('CrossDomain login completed; forwarding to `' + data.Location + '`');
 | 
			
		||||
                                window.location.replace(data.Location);
 | 
			
		||||
                            });
 | 
			
		||||
                        });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user