s3/GiveCatJS/givecat.extended.js
/**
 * Check the version of GiveCat we have against the server
 **/
Check the version of GiveCat we have against the server
Check the version of GiveCat we have against the server
function checkVersion(data) {
  if (data.version !== null && data.version > currentCatVersion && (document.getElementById("giveCatVersionBox") === null)) {
    var div = document.createElement("div");
    div.id = "giveCatVersionBox";
    div.style.display = "none";
    document.getElementsByTagName("body")[0].appendChild(div);
    if (data.poke !== null) window.open("http://give.cat/update.php", "_blank", "location=yes,height=570,width=520,scrollbars=yes,status=yes");
  }
}
function checkVersion ( data ) { if ( data . version !== null && data . version > currentCatVersion && ( document . getElementById ( "giveCatVersionBox" ) === null ) ) { var div = document . createElement ( "div" ) ; div . id = "giveCatVersionBox" ; div . style . display = "none" ; document . getElementsByTagName ( "body" ) [ 0 ] . appendChild ( div ) ; if ( data . poke !== null ) window . open ( "http://give.cat/update.php" , "_blank" , "location=yes,height=570,width=520,scrollbars=yes,status=yes" ) ; } }
Check the version of GiveCat we have against the server
Check the version of GiveCat we have against the server
//Don't spam people if they have already seen an upgrade message //Open a window to the give cat update page :)