Fix Embedder Titles.
This commit is contained in:
parent
57dbf3e8df
commit
c0a63a9e24
@ -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]]) {
|
||||
|
||||
@ -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.
BIN
builds/crx.crx
BIN
builds/crx.crx
Binary file not shown.
@ -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]]) {
|
||||
|
||||
@ -4136,6 +4136,7 @@ Linkify =
|
||||
|
||||
embedder: (a) ->
|
||||
return [a] unless Conf['Embedding']
|
||||
titles = []
|
||||
|
||||
callbacks = ->
|
||||
a.textContent = switch @status
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user