mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 18:56:04 +00:00
Fix “enlarge font” settings
This commit is contained in:
parent
f12cdc0b9f
commit
338fd8682a
|
@ -186,7 +186,7 @@ $(document).ready(function() {
|
||||||
console.debug('Fancybox injection response: %O', response);
|
console.debug('Fancybox injection response: %O', response);
|
||||||
if (response) {
|
if (response) {
|
||||||
console.log('Fancybox executed. Processing...');
|
console.log('Fancybox executed. Processing...');
|
||||||
|
|
||||||
if (options.is('option_fancybox_bind_images_to_one_flow')) {
|
if (options.is('option_fancybox_bind_images_to_one_flow')) {
|
||||||
// Linking images in posts to the galleries
|
// Linking images in posts to the galleries
|
||||||
$('.post-content .text').each(function() {
|
$('.post-content .text').each(function() {
|
||||||
|
@ -318,7 +318,7 @@ $(document).ready(function() {
|
||||||
if (options.is('option_visual_editor_post')) {
|
if (options.is('option_visual_editor_post')) {
|
||||||
// Add classes
|
// Add classes
|
||||||
$('#new-post-form #text-input, .post-content #text-input').addClass('markitup').css('height', '20em');
|
$('#new-post-form #text-input, .post-content #text-input').addClass('markitup').css('height', '20em');
|
||||||
|
|
||||||
// CSS
|
// CSS
|
||||||
// @todo message response callback processing
|
// @todo message response callback processing
|
||||||
chrome.runtime.sendMessage({
|
chrome.runtime.sendMessage({
|
||||||
|
@ -593,8 +593,8 @@ $(document).ready(function() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// Font size
|
// Font size
|
||||||
if ((options.is('option_enlarge_font')) && (option.get('option_enlarge_font_size'))) {
|
if ((options.is('option_enlarge_font')) && (options.get('option_enlarge_font_size'))) {
|
||||||
$('body').css('font-size', (option.get('option_enlarge_font_size') / 100) + 'em');
|
$('body').css('font-size', (options.get('option_enlarge_font_size') / 100) + 'em');
|
||||||
}
|
}
|
||||||
// @ before username
|
// @ before username
|
||||||
if (options.is('option_at_before_username')) {
|
if (options.is('option_at_before_username')) {
|
||||||
|
|
Loading…
Reference in a new issue