function GetCMSMSpassive() {
var jQ = jQuery.noConflict();
jQ.ajaxSetup({async: false});
var verionDoc='http://'+window.top.getBrowser().selectedBrowser.contentWindow.location.host+'/doc/CHANGELOG.txt';
jQ.get(verionDoc, function(data) {
var re = new RegExp(/(?:Version)\s+(.*?)\-(.*?)/);
var m = re.exec(data);
if (m == null) {
return false;
} else {
alert(m[1]);
return m[1];
}
});
}
FBL.ns(function() { with (FBL) {
Firebug.CMSMSForFirebug = extend(Firebug.Module,
{
shutdown: function()
{
if(Firebug.getPref('defaultPanelName')=='CMSMSForFirebug') {
Firebug.setPref('defaultPanelName','console');
}
},
showPanel: function(browser, panel)
{
var versionIS=GetCMSMSpassive();
alert(versionIS);
and so forth from there..
|