Moved the Options tab stuff to be setup after the document is ready.
This commit is contained in:
parent
81daf934fb
commit
4e39262223
@ -251,6 +251,8 @@ if (active_page == 'thread' || active_page == 'index') {
|
||||
// setup default rules for customizing
|
||||
if (!localStorage.formatText_rules) localStorage.formatText_rules = JSON.stringify(self.rules);
|
||||
|
||||
// setup code to be ran when page is ready (work around for main.js compilation).
|
||||
$(document).ready(function(){
|
||||
// Add settings to Options panel general tab
|
||||
if (window.Options && Options.get_tab('general')) {
|
||||
var s1 = '#formatText_keybinds>input', s2 = '#formatText_toolbar>input', e = 'change';
|
||||
@ -317,8 +319,6 @@ if (active_page == 'thread' || active_page == 'index') {
|
||||
}
|
||||
}
|
||||
|
||||
// setup code to be ran when page is ready (work around for main.js compilation).
|
||||
$(document).ready(function(){
|
||||
// setting for enabling formatting keybinds
|
||||
$(s1).on(e, function(e) {
|
||||
console.log('Keybind');
|
||||
|
Loading…
Reference in New Issue
Block a user