Revision: 1870
http://mrbs.svn.sourceforge.net/mrbs/?rev=1870&view=rev
Author: cimorrison
Date: 2011-08-18 16:42:54 +0000 (Thu, 18 Aug 2011)
Log Message:
-----------
Fixed known bug in ColVis (sSize is ignored)
Modified Paths:
--------------
mrbs/branches/datatables/web/jquery/datatables/js/ColVis.min.js
Modified: mrbs/branches/datatables/web/jquery/datatables/js/ColVis.min.js
===================================================================
--- mrbs/branches/datatables/web/jquery/datatables/js/ColVis.min.js
2011-08-18 16:38:41 UTC (rev 1869)
+++ mrbs/branches/datatables/web/jquery/datatables/js/ColVis.min.js
2011-08-18 16:42:54 UTC (rev 1870)
@@ -16,7 +16,7 @@
ColVis.aInstances.push(this);this.s.dt=a;this._fnConstruct();return
this};ColVis.prototype={fnRebuild:function(){for(var
a=this.dom.buttons.length-1;a>=0;a--)this.dom.buttons[a]!==null&&this.dom.collection.removeChild(this.dom.buttons[a]);this.dom.buttons.splice(0,this.dom.buttons.length);this.dom.restore&&this.dom.restore.parentNode(this.dom.restore);this._fnAddButtons();this._fnDrawCallback()},_fnConstruct:function(){this._fnApplyCustomisation();var
a=this;this.dom.wrapper=document.createElement("div");
this.dom.wrapper.className="ColVis
TableTools";this.dom.button=this._fnDomBaseButton(this.s.buttonText);this.dom.button.className+="
ColVis_MasterButton";this.dom.wrapper.appendChild(this.dom.button);this.dom.catcher=this._fnDomCatcher();this.dom.collection=this._fnDomCollection();this.dom.background=this._fnDomBackground();this._fnAddButtons();for(var
b=0,c=this.s.dt.aoColumns.length;b<c;b++)this.s.abOriginal.push(this.s.dt.aoColumns[b].bVisible);this.s.dt.aoDrawCallback.push({fn:function(){a._fnDrawCallback.call(a)},
sName:"ColVis"})},_fnApplyCustomisation:function(){var
a=this.s.oInit;if(typeof
a.activate!="undefined")this.s.activate=a.activate;if(typeof
a.buttonText!="undefined")this.s.buttonText=a.buttonText;if(typeof
a.aiExclude!="undefined")this.s.aiExclude=a.aiExclude;if(typeof
a.bRestore!="undefined")this.s.bRestore=a.bRestore;if(typeof
a.sRestore!="undefined")this.s.sRestore=a.sRestore;if(typeof
a.sAlign!="undefined")this.s.sAlign=a.sAlign;if(typeof
a.fnStateChange!="undefined")this.s.fnStateChange=a.fnStateChange;
-if(typeof
a.iOverlayFade!="undefined")this.s.iOverlayFade=a.iOverlayFade;if(typeof
a.fnLabel!="undefined")this.s.fnLabel=a.fnLabel},_fnDrawCallback:function(){for(var
a=this.s.dt.aoColumns,b=0,c=a.length;b<c;b++)if(this.dom.buttons[b]!==null)a[b].bVisible?d("input",this.dom.buttons[b]).attr("checked","checked"):d("input",this.dom.buttons[b]).removeAttr("checked")},_fnAddButtons:function(){for(var
a,b=","+this.s.aiExclude.join(",")+",",c=0,e=this.s.dt.aoColumns.length;c<e;c++)if(b.indexOf(","+c+",")==
+if(typeof
a.iOverlayFade!="undefined")this.s.iOverlayFade=a.iOverlayFade;if(typeof
a.fnLabel!="undefined")this.s.fnLabel=a.fnLabel;if(typeof
a.sSize!="undefined")this.s.sSize=a.sSize},_fnDrawCallback:function(){for(var
a=this.s.dt.aoColumns,b=0,c=a.length;b<c;b++)if(this.dom.buttons[b]!==null)a[b].bVisible?d("input",this.dom.buttons[b]).attr("checked","checked"):d("input",this.dom.buttons[b]).removeAttr("checked")},_fnAddButtons:function(){for(var
a,b=","+this.s.aiExclude.join(",")+",",c=0,e=this.s.dt.aoColumns.length;c<e;c++)if(b.indexOf(","+c+",")==
-1){a=this._fnDomColumnButton(c);this.dom.buttons.push(a);this.dom.collection.appendChild(a)}else
this.dom.buttons.push(null);if(this.s.bRestore){a=this._fnDomRestoreButton();a.className+="
ColVis_Restore";this.dom.buttons.push(a);this.dom.collection.appendChild(a)}},_fnDomRestoreButton:function(){var
a=this,b=document.createElement("button"),c=document.createElement("span");b.className=!this.s.dt.bJUI?"ColVis_Button
TableTools_Button":"ColVis_Button TableTools_Button ui-button
ui-state-default";
b.appendChild(c);d(c).html('<span
class="ColVis_title">'+this.s.sRestore+"</span>");d(b).click(function(){for(var
e=0,f=a.s.abOriginal.length;e<f;e++)a.s.dt.oInstance.fnSetColumnVis(e,a.s.abOriginal[e],false);a.s.dt.oInstance.fnDraw(false)});return
b},_fnDomColumnButton:function(a){var
b=this,c=this.s.dt.aoColumns[a],e=document.createElement("button"),f=document.createElement("span");e.className=!this.s.dt.bJUI?"ColVis_Button
TableTools_Button":"ColVis_Button TableTools_Button ui-button
ui-state-default";
e.appendChild(f);c=this.s.fnLabel===null?c.sTitle:this.s.fnLabel(a,c.sTitle,c.nTh);d(f).html('<span
class="ColVis_radio"><input type="checkbox"></span><span
class="ColVis_title">'+c+"</span>");d(e).click(function(g){var
h=!d("input",this).is(":checked");if(g.target.nodeName.toLowerCase()=="input")h=d("input",this).is(":checked");g=d.fn.dataTableExt.iApiIndex;d.fn.dataTableExt.iApiIndex=b._fnDataTablesApiIndex.call(b);b.s.dt.oInstance.fnSetColumnVis(a,h);d.fn.dataTableExt.iApiIndex=g;b.s.fnStateChange!==
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits