From decd0afc69b9c07dcbd107626b389f2df243ae7c Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 23 Jan 2024 14:47:20 +0700 Subject: [PATCH] Updated --- styles/js/bbcode.js | 6 ------ styles/templates/admin/admin_ug_auth.tpl | 7 ------- styles/templates/default/search_results.tpl | 6 +----- styles/templates/default/tracker.tpl | 12 ------------ styles/templates/default/usercp_topic_watch.tpl | 6 +----- styles/templates/default/viewforum.tpl | 4 ---- 6 files changed, 2 insertions(+), 39 deletions(-) diff --git a/styles/js/bbcode.js b/styles/js/bbcode.js index baf3818e0..f15ddfa9c 100644 --- a/styles/js/bbcode.js +++ b/styles/js/bbcode.js @@ -363,9 +363,6 @@ function initPostImages(context) { $('#preload').append($img); var loading_icon = ''; $v.html(loading_icon); - if ($.browser.msie) { - $v.after(''); - } $img.one('load', function () { imgFit(this, maxW); $v.empty().append(this); @@ -375,9 +372,6 @@ function initPostImages(context) { imgFit(this, maxW) }); $v.empty().append($img); - if ($.browser.msie) { - $v.after(''); - } } }); } diff --git a/styles/templates/admin/admin_ug_auth.tpl b/styles/templates/admin/admin_ug_auth.tpl index 33b338d9d..4c55e2ca8 100644 --- a/styles/templates/admin/admin_ug_auth.tpl +++ b/styles/templates/admin/admin_ug_auth.tpl @@ -191,13 +191,6 @@ if (tCont.offsetHeight > document.body.clientHeight) { tCont.style.height = document.body.clientHeight; } -if ($.browser.mozilla) { - if (tBody.offsetHeight > document.body.clientHeight - 65) { - tBody.style.height = document.body.clientHeight - 65; - } - tCont.style.maxWidth = document.body.clientWidth - 20; -} - function flip_perm (f_id, acl_id) { id = f_id + '_' + acl_id; diff --git a/styles/templates/default/search_results.tpl b/styles/templates/default/search_results.tpl index 04096d93f..75ad898df 100644 --- a/styles/templates/default/search_results.tpl +++ b/styles/templates/default/search_results.tpl @@ -101,11 +101,7 @@ function show_edit_options () }); $('input.topic-chbox').click(function(){ - if ($.browser.mozilla) { - $('#tr-'+this.value+' td').toggleClass('hl-selected-row'); - } else { - $('#tr-'+this.value).toggleClass('hl-selected-row'); - } + $('#tr-'+this.value).toggleClass('hl-selected-row'); }); $('#pagination a.pg').each(function(){ this.href += '&mod=1'; }); $('#ed-list-desc').hide(); diff --git a/styles/templates/default/tracker.tpl b/styles/templates/default/tracker.tpl index 9fa3900c4..493ee08ff 100644 --- a/styles/templates/default/tracker.tpl +++ b/styles/templates/default/tracker.tpl @@ -39,10 +39,6 @@ ajax.callback.view_post = function(data) { var $links = $('div.post_links', $('#post_'+post_id)); $post.css({ maxWidth: maxW, maxHeight: maxH }); $links.css({ maxWidth: maxW }); - if ($.browser.msie) { - if ($post.height() > maxH) { $post.height(maxH); } - if ($post.width() > maxW) { $post.width(maxW); $links.width(maxW); } - } ajax.openedPosts[post_id] = true; }; @@ -513,14 +509,6 @@ $(function(){ } } }); - if ($.browser.mozilla) { - $('#fs-qs-input').focus().quicksearch('#fs-main option', { - delay : 300, - onAfter : function(){ - $('#fs-main optgroup').show(); - $('#fs-main option:hidden').parent('optgroup').not( $('#fs-main :visible').parent('optgroup') ).hide(); - } - }); $('#fs-main').attr( 'size', $('#fs-main').attr('size')-1 ); $('#fs-qs-div').show(); } diff --git a/styles/templates/default/usercp_topic_watch.tpl b/styles/templates/default/usercp_topic_watch.tpl index bd72345bc..4190dfadd 100644 --- a/styles/templates/default/usercp_topic_watch.tpl +++ b/styles/templates/default/usercp_topic_watch.tpl @@ -24,11 +24,7 @@ }); $('input.topic-chbox').click(function () { - if ($.browser.mozilla) { - $('#tr-' + this.value + ' td').toggleClass('hl-selected-row'); - } else { - $('#tr-' + this.value).toggleClass('hl-selected-row'); - } + $('#tr-' + this.value).toggleClass('hl-selected-row'); }); $('#pagination a.pg').each(function () { this.href += '&mod=1'; diff --git a/styles/templates/default/viewforum.tpl b/styles/templates/default/viewforum.tpl index 9d2d3b595..293de020f 100644 --- a/styles/templates/default/viewforum.tpl +++ b/styles/templates/default/viewforum.tpl @@ -220,10 +220,6 @@ ajax.callback.view_post = function(data) { var $links = $('div.post_links', $('#post_'+topic_id)); $post.css({ maxWidth: maxW, maxHeight: maxH }); $links.css({ maxWidth: maxW }); - if ($.browser.msie) { - if ($post.height() > maxH) { $post.height(maxH); } - if ($post.width() > maxW) { $post.width(maxW); $links.width(maxW); } - } ajax.openedPosts[topic_id] = true; };