Options dependency fix.

This commit is contained in:
Alexey Skobkin 2014-04-04 01:48:37 +04:00
parent 13c6f9c614
commit 5afe90a990

View file

@ -5,6 +5,7 @@ $(document).ready(function() {
// Loading options // Loading options
chrome.storage.sync.get(ppOptions, function(options) { chrome.storage.sync.get(ppOptions, function(options) {
// Fancybox // Fancybox
if (options.option_fancybox == true) {
// Images // Images
if (options.option_fancybox_images == true) { if (options.option_fancybox_images == true) {
// Linking images in posts to the galleries // Linking images in posts to the galleries
@ -34,6 +35,8 @@ $(document).ready(function() {
maxWidth: 780 maxWidth: 780
}); });
} }
}
// Hotkeys // Hotkeys
// Send by CTRL+Enter // Send by CTRL+Enter
if (options.option_ctrl_enter == true) { if (options.option_ctrl_enter == true) {
@ -104,6 +107,7 @@ $(document).ready(function() {
}); });
} }
// WebSocket // WebSocket
if (options.option_ws == true) {
// Comments // Comments
if (options.option_ws_comments == true) { if (options.option_ws_comments == true) {
// If we are in the post page // If we are in the post page
@ -207,6 +211,8 @@ $(document).ready(function() {
} }
} }
}
}); });
// Showing page action // Showing page action