From 29e62621b5f59401d3e50e3f21bf9b17f5c03022 Mon Sep 17 00:00:00 2001 From: masa138 Date: Fri, 23 Oct 2009 19:56:14 +0000 Subject: add 'id' to tooltiptext git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35701 d0d07461-0603-4401-acd4-de1884942a52 --- account_switcher.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'account_switcher.js') 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); -- cgit v1.2.3