From ca8e74cf10f787fe56ca39162af7413e12d43429 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 7 Jul 2011 23:07:38 +1000 Subject: [PATCH] made inline expanding of images optional --- inc/config.php | 3 +++ main.js | 58 +++++++++++++++++++++++++---------------------- templates/main.js | 54 +++++++++++++++++++++++-------------------- 3 files changed, 63 insertions(+), 52 deletions(-) diff --git a/inc/config.php b/inc/config.php index e71f3631..ca3aec91 100644 --- a/inc/config.php +++ b/inc/config.php @@ -249,6 +249,9 @@ $config['show_ratio'] = false; // Display the file's original filename $config['show_filename']= true; + // Inline expanding of images with Javascript + $config['inline_expanding'] = true; + // Directory where temporary files will be created. Not really used much yet except for some experimental stuff. $config['tmp'] = '/tmp'; diff --git a/main.js b/main.js index ff076598..477c90db 100644 --- a/main.js +++ b/main.js @@ -58,8 +58,8 @@ function citeReply(id) { var selectedstyle = 'Yotsuba B'; var styles = [ - ['Yotsuba B', '/Tinyboard/default.css'], - ['Yotsuba', '/Tinyboard/yotsuba.css'] + ['Yotsuba B', '/Tinyboard/stylesheets/default.css'], + ['Yotsuba', '/Tinyboard/stylesheets/yotsuba.css'] ]; var saved = {}; @@ -113,31 +113,7 @@ function rememberStuff() { } } -function init() -{ - newElement = document.createElement('div'); - newElement.className = 'styles'; - - for(x=0;x