Fix Embedder Titles.
This commit is contained in:
parent
57dbf3e8df
commit
c0a63a9e24
@ -3436,7 +3436,8 @@
|
|||||||
MascotTools.init(_conf["mascot"]);
|
MascotTools.init(_conf["mascot"]);
|
||||||
Style.layoutCSS.textContent = Style.layout();
|
Style.layoutCSS.textContent = Style.layout();
|
||||||
Style.themeCSS.textContent = Style.theme(theme);
|
Style.themeCSS.textContent = Style.theme(theme);
|
||||||
return Style.iconPositions();
|
Style.iconPositions();
|
||||||
|
return Style.padding();
|
||||||
},
|
},
|
||||||
headCount: 12,
|
headCount: 12,
|
||||||
addStyleReady: function() {
|
addStyleReady: function() {
|
||||||
@ -11266,11 +11267,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
embedder: function(a) {
|
embedder: function(a) {
|
||||||
var callbacks, embed, key, match, service, type, _ref;
|
var callbacks, embed, key, match, service, titles, type, _ref;
|
||||||
|
|
||||||
if (!Conf['Embedding']) {
|
if (!Conf['Embedding']) {
|
||||||
return [a];
|
return [a];
|
||||||
}
|
}
|
||||||
|
titles = [];
|
||||||
callbacks = function() {
|
callbacks = function() {
|
||||||
var title;
|
var title;
|
||||||
|
|
||||||
@ -11309,7 +11311,7 @@
|
|||||||
$.on(embed, 'click', Linkify.toggle);
|
$.on(embed, 'click', Linkify.toggle);
|
||||||
if (Conf['Link Title'] && (service = type.title)) {
|
if (Conf['Link Title'] && (service = type.title)) {
|
||||||
$.get('CachedTitles', {}, function(item) {
|
$.get('CachedTitles', {}, function(item) {
|
||||||
var err, title, titles;
|
var err, title;
|
||||||
|
|
||||||
titles = item['CachedTitles'];
|
titles = item['CachedTitles'];
|
||||||
if (title = titles[match[1]]) {
|
if (title = titles[match[1]]) {
|
||||||
|
|||||||
@ -3427,7 +3427,8 @@
|
|||||||
MascotTools.init(_conf["mascot"]);
|
MascotTools.init(_conf["mascot"]);
|
||||||
Style.layoutCSS.textContent = Style.layout();
|
Style.layoutCSS.textContent = Style.layout();
|
||||||
Style.themeCSS.textContent = Style.theme(theme);
|
Style.themeCSS.textContent = Style.theme(theme);
|
||||||
return Style.iconPositions();
|
Style.iconPositions();
|
||||||
|
return Style.padding();
|
||||||
},
|
},
|
||||||
headCount: 12,
|
headCount: 12,
|
||||||
addStyleReady: function() {
|
addStyleReady: function() {
|
||||||
@ -11257,11 +11258,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
embedder: function(a) {
|
embedder: function(a) {
|
||||||
var callbacks, embed, key, match, service, type, _ref;
|
var callbacks, embed, key, match, service, titles, type, _ref;
|
||||||
|
|
||||||
if (!Conf['Embedding']) {
|
if (!Conf['Embedding']) {
|
||||||
return [a];
|
return [a];
|
||||||
}
|
}
|
||||||
|
titles = [];
|
||||||
callbacks = function() {
|
callbacks = function() {
|
||||||
var title;
|
var title;
|
||||||
|
|
||||||
@ -11300,7 +11302,7 @@
|
|||||||
$.on(embed, 'click', Linkify.toggle);
|
$.on(embed, 'click', Linkify.toggle);
|
||||||
if (Conf['Link Title'] && (service = type.title)) {
|
if (Conf['Link Title'] && (service = type.title)) {
|
||||||
$.get('CachedTitles', {}, function(item) {
|
$.get('CachedTitles', {}, function(item) {
|
||||||
var err, title, titles;
|
var err, title;
|
||||||
|
|
||||||
titles = item['CachedTitles'];
|
titles = item['CachedTitles'];
|
||||||
if (title = titles[match[1]]) {
|
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"]);
|
MascotTools.init(_conf["mascot"]);
|
||||||
Style.layoutCSS.textContent = Style.layout();
|
Style.layoutCSS.textContent = Style.layout();
|
||||||
Style.themeCSS.textContent = Style.theme(theme);
|
Style.themeCSS.textContent = Style.theme(theme);
|
||||||
return Style.iconPositions();
|
Style.iconPositions();
|
||||||
|
return Style.padding();
|
||||||
},
|
},
|
||||||
headCount: 12,
|
headCount: 12,
|
||||||
addStyleReady: function() {
|
addStyleReady: function() {
|
||||||
@ -11207,11 +11208,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
embedder: function(a) {
|
embedder: function(a) {
|
||||||
var callbacks, embed, key, match, service, type, _ref;
|
var callbacks, embed, key, match, service, titles, type, _ref;
|
||||||
|
|
||||||
if (!Conf['Embedding']) {
|
if (!Conf['Embedding']) {
|
||||||
return [a];
|
return [a];
|
||||||
}
|
}
|
||||||
|
titles = [];
|
||||||
callbacks = function() {
|
callbacks = function() {
|
||||||
var title;
|
var title;
|
||||||
|
|
||||||
@ -11250,7 +11252,7 @@
|
|||||||
$.on(embed, 'click', Linkify.toggle);
|
$.on(embed, 'click', Linkify.toggle);
|
||||||
if (Conf['Link Title'] && (service = type.title)) {
|
if (Conf['Link Title'] && (service = type.title)) {
|
||||||
$.get('CachedTitles', {}, function(item) {
|
$.get('CachedTitles', {}, function(item) {
|
||||||
var err, title, titles;
|
var err, title;
|
||||||
|
|
||||||
titles = item['CachedTitles'];
|
titles = item['CachedTitles'];
|
||||||
if (title = titles[match[1]]) {
|
if (title = titles[match[1]]) {
|
||||||
|
|||||||
@ -4136,6 +4136,7 @@ Linkify =
|
|||||||
|
|
||||||
embedder: (a) ->
|
embedder: (a) ->
|
||||||
return [a] unless Conf['Embedding']
|
return [a] unless Conf['Embedding']
|
||||||
|
titles = []
|
||||||
|
|
||||||
callbacks = ->
|
callbacks = ->
|
||||||
a.textContent = switch @status
|
a.textContent = switch @status
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user