+ 'test_upgrade_instructions' : function(url) {
+ var obj = this;
+ try {
+ var x = new XMLHttpRequest();
+ var url2 = url + '/xul/versions.html';
+ dump('upgrade url = ' + url2 + '\n');
+ x.open("GET",url2,true);
+ x.onreadystatechange = function() {
+ try {
+ if (x.readyState != 4) return;
+ if (x.status == 200) {
+ window.open('data:text/html,'+window.escape(x.responseText),'upgrade','chrome,resizable,modal,centered');
+ } else {
+ alert('This server does not support your version of the staff client. Please check with your system administrator.');
+ }
+ } catch(E) {
+ obj.error.sdump('D_ERROR',E);
+ }
+ }
+ x.send(null);
+ } catch(E) {
+ obj.error.sdump('D_ERROR',E);
+ }
+ },
+