fix scrollbar on chat + compress css files + add remove filter inlist

This commit is contained in:
lutranf
2014-10-28 20:55:22 +01:00
parent 6b149c445d
commit 3697c32017
13 changed files with 57 additions and 3940 deletions

12
jquery/databap.js vendored
View File

@@ -852,6 +852,18 @@ function Databap()
if(self.tmp('scrollbar')) self.tmp('scrollbar').tinyscrollbar_update(sPos);
};
this.isScrollBarAtBottom = function()
{
return self.tmp('scrollbar').tinyscrollbar_isBottom();
};
this.unifyWidth = function($ItemsSet)
{
var iMaxWidth = 0;
$ItemsSet.each(function(){iMaxWidth = Math.max(iMaxWidth, $(this).width());});
$ItemsSet.each(function(){if($(this).width() < iMaxWidth) $(this).width(iMaxWidth);});
};
this.shareEvent = function(sType, iId)
{
if(iId!='')

View File

@@ -10,6 +10,9 @@
$.tiny.scrollbar = {options:{axis:'y',wheel:40,scroll:true,size:'auto',sizethumb:'auto'}};
$.fn.tinyscrollbar=function(options){var options=$.extend({},$.tiny.scrollbar.options,options);this.each(function(){$(this).data('tsb',new Scrollbar($(this),options));});return this;};
$.fn.tinyscrollbar_update=function(sScroll){return $(this).data('tsb').update(sScroll);};
/* Adding getPos function - Start */
$.fn.tinyscrollbar_isBottom=function(){return $(this).data('tsb').isBottom();};
/* Adding getPos function - End */
function Scrollbar(root,options)
{
@@ -49,6 +52,13 @@
setSize();
};
/* Adding isBottom function - Start */
this.isBottom=function()
{
return (iScroll == (oContent[options.axis] - oViewport[options.axis]));
};
/* Adding isBottom function - End */
function setSize()
{
oThumb.obj.css(sDirection,iScroll/oScrollbar.ratio);