Skip to content

Commit

Permalink
Updated: Added anonymous function wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
brookinsconsulting committed Nov 12, 2013
1 parent c23c397 commit 5852cca
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions design/standard/javascript/failover.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
$(function(){
// alert('failover.js loaded');

// alert('failover.js loaded');

var jqxhr = $.ajax({
type: "GET",
url: "/failover/test"
})
.done(function( data ) {
// alert( "request complete" );
// alert( data );
if ( data == '1' )
{
$('body').first().append('<div class="failover-alert">Warning: You are using a failover mirror of the site! Your changes will be lost when service is restored!</div>');
}
});

var jqxhr = $.ajax({
type: "GET",
url: "/failover/test"
})
.done(function( data ) {
// alert( "request complete" );
// alert( data );
if ( data == '1' )
{
$('body').first().append('<div class="failover-alert">Warning: You are using a failover mirror of the site! Your changes will be lost when service is restored!</div>');
}
});
});

0 comments on commit 5852cca

Please sign in to comment.