Skip to content

Commit

Permalink
リンク上判定を修正(LDRからリンクポスト時にフィードタイトルが抜ける問題対応)
Browse files Browse the repository at this point in the history
  • Loading branch information
to committed Aug 17, 2010
1 parent 968a50c commit 4276085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions xpi/chrome/content/library/20_model.js
Expand Up @@ -2503,17 +2503,18 @@ models.register({
convert : function(str, name){
var service;
var self = this;

return this.getService(name).addCallback(function(res){
var strForRequest;

service = res;

charset = self.charsets[service.charset];
if(charset != 'utf-8')
if(charset != 'utf-8'){
strForRequest = escape(str.convertFromUnicode(charset));
else
} else {
strForRequest = encodeURIComponent(str);
}

return request(service.url.replace(/%s/, strForRequest), {
charset : charset,
Expand Down
2 changes: 1 addition & 1 deletion xpi/chrome/content/library/30_Tombloo.Service.js
Expand Up @@ -12,7 +12,7 @@ Tombloo.Service = {
// html要素などのルート要素も除外する
if(!ctx.menu && ctx.target &&
(ctx.target.parentNode != ctx.target.ownerDocument && ctx.target != ctx.target.ownerDocument)){
ctx.link = $x('.//ancestor::a', ctx.target);
ctx.link = $x('./ancestor::a', ctx.target);
ctx.onLink = !!ctx.link;
ctx.onImage = ctx.target instanceof Ci.nsIDOMHTMLImageElement;
}
Expand Down

0 comments on commit 4276085

Please sign in to comment.