1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| var reg = new RegExp("[/\.]+", "g");
splitScriptName = function (src) {
return src.split(reg);
};
var r = new RegExp("[/]", "g");
splitScriptPath = function (src) {
return src.split(r);
};
var i=0;
Ext.each(Ext.query('script'),function(s){
if ('' != s.src) {
script = splitScriptName(s.src);
if (('ext-all-debug' == script[script.length -2]) || ('ext-all' == script[script.length -2])) {
script = splitScriptPath(s.src);
Ext.baseUrl ='';
for (var j=0; j<script.length - 1; j++) {
Ext.baseUrl += script[j] + '/';
}
Ext.BLANK_IMAGE_URL = Ext.baseUrl + 'resources/images/default/s.gif';
}
}
}); |
Partager