summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2008-09-30 08:33:27 +0000
committerThomas BrĂ¼derli2008-09-30 08:33:27 +0000
commit950e1abaabda5a8b86326af95fd6af5216c2c6df (patch)
tree9aeeeadd440e1f7c6b683faa75bf92d6e16abdcd /itjs
parent27ee3cdc63e6bc8d214e246ede8d2eaf4ee5347b (diff)
downloaditools-950e1abaabda5a8b86326af95fd6af5216c2c6df.tar.gz
itools-950e1abaabda5a8b86326af95fd6af5216c2c6df.tar.bz2
itools-950e1abaabda5a8b86326af95fd6af5216c2c6df.zip
Firebug shouldn't be a problem anymore
Diffstat (limited to 'itjs')
-rw-r--r--itjs/loader.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/itjs/loader.js b/itjs/loader.js
index db98583..9f1dd53 100644
--- a/itjs/loader.js
+++ b/itjs/loader.js
@@ -67,12 +67,11 @@ load: function(baseurl, pos, num, query_volatile, retry)
{
this.req = null;
var samehost = (baseurl.indexOf('http://') < 0 || baseurl.indexOf(window.location.hostname) > 0);
- var use_script = (window.console && window.console.firebug) || !samehost; // use XMLHTTP request only if on same host and not using firebug
if (retry)
baseurl += (baseurl.match(/\?/) ? "&" : "?") + "retry=" + retry;
- if (!use_script)
+ if (samehost) // use XMLHTTP request only if on same host
{
try
{
@@ -120,7 +119,7 @@ load: function(baseurl, pos, num, query_volatile, retry)
{
var req_url = baseurl + (baseurl.match(/\?/) ? "&" : "?") + "pos=" + pos + "&num=" + num + (query_volatile ? query_volatile : "") + (this.post_data ? '&' + this.post_data : "") + "&itjs_call=it_loader.__inst" + this.instance + "&itjs_callid=" + ++this.callid;
- if (!use_script || (window.opera && !window.XMLHttpRequest)) // Opera 7 only works with iframes
+ if (samehost || (window.opera && !window.XMLHttpRequest)) // Opera 7 only works with iframes
{
var scrpt = document.createElement("iframe");
scrpt.style.width = scrpt.style.height = 1;