This commit is contained in:
Roman Kelesidis 2024-01-23 14:47:20 +07:00
commit decd0afc69
6 changed files with 2 additions and 39 deletions

View file

@ -363,9 +363,6 @@ function initPostImages(context) {
$('#preload').append($img); $('#preload').append($img);
var loading_icon = '<a href="' + src + '" target="_blank"><img src="' + bb_url + 'styles/images/pic_loading.gif" alt="" /></a>'; var loading_icon = '<a href="' + src + '" target="_blank"><img src="' + bb_url + 'styles/images/pic_loading.gif" alt="" /></a>';
$v.html(loading_icon); $v.html(loading_icon);
if ($.browser.msie) {
$v.after('<wbr>');
}
$img.one('load', function () { $img.one('load', function () {
imgFit(this, maxW); imgFit(this, maxW);
$v.empty().append(this); $v.empty().append(this);
@ -375,9 +372,6 @@ function initPostImages(context) {
imgFit(this, maxW) imgFit(this, maxW)
}); });
$v.empty().append($img); $v.empty().append($img);
if ($.browser.msie) {
$v.after('<wbr>');
}
} }
}); });
} }

View file

@ -191,13 +191,6 @@ if (tCont.offsetHeight > document.body.clientHeight) {
tCont.style.height = 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) function flip_perm (f_id, acl_id)
{ {
id = f_id + '_' + acl_id; id = f_id + '_' + acl_id;

View file

@ -101,11 +101,7 @@ function show_edit_options ()
}); });
$('input.topic-chbox').click(function(){ $('input.topic-chbox').click(function(){
if ($.browser.mozilla) { $('#tr-'+this.value).toggleClass('hl-selected-row');
$('#tr-'+this.value+' td').toggleClass('hl-selected-row');
} else {
$('#tr-'+this.value).toggleClass('hl-selected-row');
}
}); });
$('#pagination a.pg').each(function(){ this.href += '&mod=1'; }); $('#pagination a.pg').each(function(){ this.href += '&mod=1'; });
$('#ed-list-desc').hide(); $('#ed-list-desc').hide();

View file

@ -39,10 +39,6 @@ ajax.callback.view_post = function(data) {
var $links = $('div.post_links', $('#post_'+post_id)); var $links = $('div.post_links', $('#post_'+post_id));
$post.css({ maxWidth: maxW, maxHeight: maxH }); $post.css({ maxWidth: maxW, maxHeight: maxH });
$links.css({ maxWidth: maxW }); $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; ajax.openedPosts[post_id] = true;
}; };
</script> </script>
@ -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-main').attr( 'size', $('#fs-main').attr('size')-1 );
$('#fs-qs-div').show(); $('#fs-qs-div').show();
} }

View file

@ -24,11 +24,7 @@
}); });
$('input.topic-chbox').click(function () { $('input.topic-chbox').click(function () {
if ($.browser.mozilla) { $('#tr-' + this.value).toggleClass('hl-selected-row');
$('#tr-' + this.value + ' td').toggleClass('hl-selected-row');
} else {
$('#tr-' + this.value).toggleClass('hl-selected-row');
}
}); });
$('#pagination a.pg').each(function () { $('#pagination a.pg').each(function () {
this.href += '&mod=1'; this.href += '&mod=1';

View file

@ -220,10 +220,6 @@ ajax.callback.view_post = function(data) {
var $links = $('div.post_links', $('#post_'+topic_id)); var $links = $('div.post_links', $('#post_'+topic_id));
$post.css({ maxWidth: maxW, maxHeight: maxH }); $post.css({ maxWidth: maxW, maxHeight: maxH });
$links.css({ maxWidth: maxW }); $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; ajax.openedPosts[topic_id] = true;
}; };
</script> </script>