diff options
| author | czaks <marcin@6irc.net> | 2013-09-18 09:00:22 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-09-18 09:00:22 -0400 |
| commit | 99a2e1cf3ddf3e7b3be8f65029297dce6955509c (patch) | |
| tree | 9001d26a78bb7e7f0156633b45b17c96a95c9bbb /templates | |
| parent | 8ca495e5b8c8382dbfeebc4990f0accc80101a46 (diff) | |
| parent | 8a5d6b1d3f2d9ce8177c240f78b9b1801bc7306c (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard into vichan-devel-4.5
Conflicts:
js/quick-reply.js
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/main.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/main.js b/templates/main.js index 6136b11f..52c06cea 100644 --- a/templates/main.js +++ b/templates/main.js @@ -249,6 +249,17 @@ function rememberStuff() { } } +var script_settings = function(script_name) { + this.script_name = script_name; + this.get = function(var_name, default_val) { + if (typeof tb_settings == 'undefined' || + typeof tb_settings[this.script_name] == 'undefined' || + typeof tb_settings[this.script_name][var_name] == 'undefined') + return default_val; + return tb_settings[this.script_name][var_name]; + } +}; + function init() { init_stylechooser(); |
