Powolutku cos tam zalapuje JS ale to mnie narazieprzerasta
Chciałbym aby jquery adres (tworzy zakladki) nie zmianial mi title strony lub zeby zmienial na podany przez mnie a nie 'undefined' gdy żadna karta nie jest aktywna
https://github.com/asual/jquery-address/blo...uery.address.js
Uznalem ze pewnie te
linijki 106-115
CODE
_html = function() {
var src = _js() + ':' + FALSE + ';document.open();document.writeln(\'<html><head><title>' +
_d.title.replace(/\'/g, '\\\'') + '</title><script>var ' + ID + ' = "' + encodeURIComponent(_href()).replace(/\'/g, '\\\'') +
(_d.domain != _l.hostname ? '";document.domain="' + _d.domain : '') +
'";</' + 'script></head></html>\');document.close();';
if (_version < 7) {
_frame.src = src;
} else {
_frame.contentWindow.location.replace(src);
}
var src = _js() + ':' + FALSE + ';document.open();document.writeln(\'<html><head><title>' +
_d.title.replace(/\'/g, '\\\'') + '</title><script>var ' + ID + ' = "' + encodeURIComponent(_href()).replace(/\'/g, '\\\'') +
(_d.domain != _l.hostname ? '";document.domain="' + _d.domain : '') +
'";</' + 'script></head></html>\');document.close();';
if (_version < 7) {
_frame.src = src;
} else {
_frame.contentWindow.location.replace(src);
}
Próbowałem tu zastapic pusta zmienna lub zakomentowanym html ale dalej jest undefined
niezatrybiło
druga próba z zastapieniem 'undefined' wyszukalem i zaczalem grzebac
linijki 50-55
CODE
_window = function() {
try {
return top.document !== UNDEFINED && top.document.title !== UNDEFINED ? top : window;
} catch (e) {
return window;
}
try {
return top.document !== UNDEFINED && top.document.title !== UNDEFINED ? top : window;
} catch (e) {
return window;
}
ale mi nie wyszlo, wydaje mi sie ze ta czesc kodu jest odpowiedzialna za tytul
Bede wdzieczny za pomoc, tylko prosze naprowadzac mnie blisko lub doslownie bo jestem slaby w JS
dzieki