Fix Embedder Titles.

This commit is contained in:
Zixaphir 2013-04-14 22:39:31 -07:00
parent 57dbf3e8df
commit c0a63a9e24
6 changed files with 16 additions and 9 deletions

View File

@ -3436,7 +3436,8 @@
MascotTools.init(_conf["mascot"]);
Style.layoutCSS.textContent = Style.layout();
Style.themeCSS.textContent = Style.theme(theme);
return Style.iconPositions();
Style.iconPositions();
return Style.padding();
},
headCount: 12,
addStyleReady: function() {
@ -11266,11 +11267,12 @@
}
},
embedder: function(a) {
var callbacks, embed, key, match, service, type, _ref;
var callbacks, embed, key, match, service, titles, type, _ref;
if (!Conf['Embedding']) {
return [a];
}
titles = [];
callbacks = function() {
var title;
@ -11309,7 +11311,7 @@
$.on(embed, 'click', Linkify.toggle);
if (Conf['Link Title'] && (service = type.title)) {
$.get('CachedTitles', {}, function(item) {
var err, title, titles;
var err, title;
titles = item['CachedTitles'];
if (title = titles[match[1]]) {

View File

@ -3427,7 +3427,8 @@
MascotTools.init(_conf["mascot"]);
Style.layoutCSS.textContent = Style.layout();
Style.themeCSS.textContent = Style.theme(theme);
return Style.iconPositions();
Style.iconPositions();
return Style.padding();
},
headCount: 12,
addStyleReady: function() {
@ -11257,11 +11258,12 @@
}
},
embedder: function(a) {
var callbacks, embed, key, match, service, type, _ref;
var callbacks, embed, key, match, service, titles, type, _ref;
if (!Conf['Embedding']) {
return [a];
}
titles = [];
callbacks = function() {
var title;
@ -11300,7 +11302,7 @@
$.on(embed, 'click', Linkify.toggle);
if (Conf['Link Title'] && (service = type.title)) {
$.get('CachedTitles', {}, function(item) {
var err, title, titles;
var err, title;
titles = item['CachedTitles'];
if (title = titles[match[1]]) {

Binary file not shown.

Binary file not shown.

View File

@ -3372,7 +3372,8 @@
MascotTools.init(_conf["mascot"]);
Style.layoutCSS.textContent = Style.layout();
Style.themeCSS.textContent = Style.theme(theme);
return Style.iconPositions();
Style.iconPositions();
return Style.padding();
},
headCount: 12,
addStyleReady: function() {
@ -11207,11 +11208,12 @@
}
},
embedder: function(a) {
var callbacks, embed, key, match, service, type, _ref;
var callbacks, embed, key, match, service, titles, type, _ref;
if (!Conf['Embedding']) {
return [a];
}
titles = [];
callbacks = function() {
var title;
@ -11250,7 +11252,7 @@
$.on(embed, 'click', Linkify.toggle);
if (Conf['Link Title'] && (service = type.title)) {
$.get('CachedTitles', {}, function(item) {
var err, title, titles;
var err, title;
titles = item['CachedTitles'];
if (title = titles[match[1]]) {

View File

@ -4136,6 +4136,7 @@ Linkify =
embedder: (a) ->
return [a] unless Conf['Embedding']
titles = []
callbacks = ->
a.textContent = switch @status