diff options
author | masa138 | 2009-10-23 19:56:14 +0000 |
---|---|---|
committer | masa138 | 2009-10-23 19:56:14 +0000 |
commit | 29e62621b5f59401d3e50e3f21bf9b17f5c03022 (patch) | |
tree | 2d675a29d112321c52e95df8969d383a58c9d96b /account_switcher.js | |
parent | 15d4013f469be33a79a01e4014b5bed56ab8630b (diff) | |
download | vimperator-plugins-29e62621b5f59401d3e50e3f21bf9b17f5c03022.tar.bz2 |
add 'id' to tooltiptext
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35701 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'account_switcher.js')
-rw-r--r-- | account_switcher.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/account_switcher.js b/account_switcher.js index a5fede8..210fac5 100644 --- a/account_switcher.js +++ b/account_switcher.js @@ -192,18 +192,18 @@ liberator.accountSwitcherOpenNewTab = 1; req.onload = function(e) { if (service.jump != null) { var url = (service.jump.indexOf('http') == -1) ? service.host + service.jump : service.jump; - if (!!liberator.globalVariables.accountSwitcherOpenNewTab && content.location.href != 'about:blank') { + if (!!liberator.globalVariables.accountSwitcherOpenNewTab && window.content.location.href != 'about:blank') { liberator.open(url, liberator.NEW_BACKGROUND_TAB); } else { - content.location.href = url; + window.content.location.href = url; } } else if(content.location.href != 'about:blank') { - content.location.reload(); + window.content.location.reload(); } var needle = '.hatena.ne.jp'; if (service.host.toLowerCase().lastIndexOf(needle) == service.host.length - needle.length) { img.setAttribute('src', 'http://www.hatena.ne.jp/users/' + username.substr(0, 2) + '/' + username + '/profile_s.gif'); - img.setAttribute('tooltiptext', username); + img.setAttribute('tooltiptext', 'id:' + username); if (!document.getElementById('account_switcher_pannel')) { if (afterSLine != null) { statusBar.insertBefore(sbPannel, afterSLine); |