diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-31 19:18:53 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-31 19:18:53 +1100 |
| commit | d9b2b3f7a19ae12019c8c4583f77db7708cf5004 (patch) | |
| tree | 0dd502d57df3a832569e51c2fbd9ce37b91408ac /templates/main.js | |
| parent | 2dda55da1cb0382876ce5a841307b998cced53c6 (diff) | |
inline-expanding.js
Diffstat (limited to 'templates/main.js')
| -rw-r--r-- | templates/main.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/templates/main.js b/templates/main.js index 9e51aa7b..71180259 100644 --- a/templates/main.js +++ b/templates/main.js @@ -136,38 +136,6 @@ function rememberStuff() { }
}
-function init_expanding() {
- link = document.getElementsByTagName('a');
- for ( i in link ) {
- if(typeof link[i] == "object" && link[i].childNodes[0].src && link[i].className != 'file') {
- link[i].onclick = function(e) {
- if(e.which == 2) {
- return true;
- }
- if(!this.tag) {
- this.tag = this.childNodes[0].src;
- this.childNodes[0].src = this.href;
- this.childNodes[0].style.width = 'auto';
- this.childNodes[0].style.height = 'auto';
- this.childNodes[0].style.opacity = '0.4';
- this.childNodes[0].style.filter = 'alpha(opacity=40)';
- this.childNodes[0].onload = function() {
- this.style.opacity = '1';
- this.style.filter = '';
- }
- } else {
- this.childNodes[0].src = this.tag;
- this.childNodes[0].style.width = 'auto';
- this.childNodes[0].style.height = 'auto';
- this.tag = '';
- }
- return false;
- }
-
- }
- }
-}
-
function init() {
newElement = document.createElement('div');
newElement.className = 'styles';
@@ -189,8 +157,6 @@ function init() { if(window.location.hash.indexOf('q') != 1 && window.location.hash.substring(1))
highlightReply(window.location.hash.substring(1));
-
- {% endraw %}{% if config.inline_expanding %}{% raw %}init_expanding();{% endraw %}{% endif %}{% raw %}
}
var RecaptchaOptions = {
|
