Revision: 2051
          http://mrbs.svn.sourceforge.net/mrbs/?rev=2051&view=rev
Author:   cimorrison
Date:     2011-10-02 11:08:26 +0000 (Sun, 02 Oct 2011)
Log Message:
-----------
Fixed bug causing buttons to spill over more than one line when there are long 
column titles in the "Show/Hide Columns" collection.

Modified Paths:
--------------
    mrbs/branches/datatables/web/jquery/datatables/js/ColVis.mrbs.min.js

Modified: mrbs/branches/datatables/web/jquery/datatables/js/ColVis.mrbs.min.js
===================================================================
--- mrbs/branches/datatables/web/jquery/datatables/js/ColVis.mrbs.min.js        
2011-10-02 11:05:05 UTC (rev 2050)
+++ mrbs/branches/datatables/web/jquery/datatables/js/ColVis.mrbs.min.js        
2011-10-02 11:08:26 UTC (rev 2051)
@@ -26,7 +26,7 @@
 null&&b.s.fnStateChange.call(b,a,h)});return 
e},_fnDataTablesApiIndex:function(){for(var 
a=0,b=this.s.dt.oInstance.length;a<b;a++)if(this.s.dt.oInstance[a]==this.s.dt.nTable)return
 a;return 0},_fnDomBaseButton:function(a){var 
b=this,c=document.createElement("button"),e=document.createElement("span"),f=this.s.activate=="mouseover"?"mouseover":"click";c.className=!this.s.dt.bJUI?"ColVis_Button
 TableTools_Button":"ColVis_Button TableTools_Button ui-button 
ui-state-default";c.appendChild(e);e.innerHTML=
 a;d(c).bind(f,function(g){b._fnCollectionShow();g.preventDefault()});return 
c},_fnDomCollection:function(){var 
a=document.createElement("div");a.style.display="none";a.className=!this.s.dt.bJUI?"ColVis_collection
 TableTools_collection":"ColVis_collection TableTools_collection ui-buttonset 
ui-buttonset-multi";a.style.position="absolute";d(a).css("opacity",0);return 
a},_fnDomCatcher:function(){var 
a=this,b=document.createElement("div");b.className="ColVis_catcher 
TableTools_catcher";d(b).click(function(){a._fnCollectionHide.call(a,
 null,null)});return b},_fnDomBackground:function(){var 
a=this,b=document.createElement("div");b.style.position="absolute";b.style.left="0px";b.style.top="0px";b.className="ColVis_collectionBackground
 
TableTools_collectionBackground";d(b).css("opacity",0);d(b).click(function(){a._fnCollectionHide.call(a,null,null)});this.s.activate=="mouseover"&&d(b).mouseover(function(){a.s.overcollection=false;a._fnCollectionHide.call(a,null,null)});return
 b},_fnCollectionShow:function(){var a=this,b,c;b=d(this.dom.button).offset();
-var 
e=this.dom.collection,f=this.dom.background,g=parseInt(b.left,10),h=parseInt(b.top+d(this.dom.button).outerHeight(),10);e.style.top=h+"px";e.style.left=g+"px";e.style.display="block";d(e).css("opacity",0);c=d(window).height();var
 
i=d(document).height(),j=d(window).width();h=d(document).width();f.style.height=(c>i?c:i)+"px";f.style.width=(j<h?j:h)+"px";c=this.dom.catcher.style;c.height=d(this.dom.button).outerHeight()+"px";c.width=d(this.dom.button).outerWidth()+"px";c.top=b.top+"px";c.left=g+
+var 
e=this.dom.collection,f=this.dom.background,g=parseInt(b.left,10),h=parseInt(b.top+d(this.dom.button).outerHeight(),10);e.style.top=h+"px";e.style.left=0;e.style.display="block";d(e).css("opacity",0);c=d(window).height();var
 
i=d(document).height(),j=d(window).width();h=d(document).width();f.style.height=(c>i?c:i)+"px";f.style.width=(j<h?j:h)+"px";c=this.dom.catcher.style;c.height=d(this.dom.button).outerHeight()+"px";c.width=d(this.dom.button).outerWidth()+"px";c.top=b.top+"px";c.left=g+
 
"px";document.body.appendChild(f);document.body.appendChild(e);document.body.appendChild(this.dom.catcher);if(this.s.sSize=="auto"){i=[];this.dom.collection.style.width="auto";b=0;for(c=this.dom.buttons.length;b<c;b++)if(this.dom.buttons[b]!==null){this.dom.buttons[b].style.width="auto";i.push(d(this.dom.buttons[b]).outerWidth())}iMax=Math.max.apply(window,i);b=0;for(c=this.dom.buttons.length;b<c;b++)if(this.dom.buttons[b]!==null)this.dom.buttons[b].style.width=iMax+"px";this.dom.collection.style.width=
 
iMax+"px"}e.style.left=this.s.sAlign=="left"?g+"px":g-d(e).outerWidth()+d(this.dom.button).outerWidth()+"px";b=d(e).outerWidth();d(e).outerHeight();if(g+b>h)e.style.left=h-b+"px";setTimeout(function(){d(e).animate({opacity:1},a.s.iOverlayFade);d(f).animate({opacity:0.1},a.s.iOverlayFade,"linear",function(){jQuery.browser.msie&&jQuery.browser.version=="6.0"&&a._fnDrawCallback()})},10);this.s.hidden=false},_fnCollectionHide:function(){var
 a=this;if(!this.s.hidden&&this.dom.collection!==null){this.s.hidden=
 
true;d(this.dom.collection).animate({opacity:0},a.s.iOverlayFade,function(){this.style.display="none"});d(this.dom.background).animate({opacity:0},a.s.iOverlayFade,function(){document.body.removeChild(a.dom.background);document.body.removeChild(a.dom.catcher)})}}};ColVis.fnRebuild=function(a){var
 b=null;if(typeof a!="undefined")b=a.fnSettings().nTable;for(var 
c=0,e=ColVis.aInstances.length;c<e;c++)if(typeof 
a=="undefined"||b==ColVis.aInstances[c].s.dt.nTable)ColVis.aInstances[c].fnRebuild()};ColVis.aInstances=

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to