Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an issue with remote js and IE

  • Loading branch information...
commit 178fb7c0cf64f91f6ead52a616aab2fec742da23 1 parent fc24502
Dav Glass authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/js/bp-jslint.js
13 src/js/bp-jslint.js
View
@@ -3,7 +3,7 @@
BPJSLint = {
error: function() {
//console.log('error: ', arguments);
- return false;
+ return true;
},
callback: function(data) {
if (data && data.status) {
@@ -25,7 +25,18 @@
if (sc[i].src) {
//Ignore code from yahooapis and this file..
if ((sc[i].src.indexOf('yahooapis') == -1) && (sc[i].src.indexOf('bp-jslint.js') == -1)) {
+ //data.src = sc[i].src;
data.src = sc[i].src;
+ if (data.src.indexOf('http:/'+'/') == -1) {
+ //This is for IE
+ var str = '';
+ var host = location.href;
+ var parts = host.split('/');
+ delete parts[parts.length - 1]
+ var url = parts.join('/');
+
+ data.src = url + data.src;
+ }
} else {
data = null;
}
Please sign in to comment.
Something went wrong with that request. Please try again.