From 97a0a82dc30982f5fac532209f61c237b71b4b59 Mon Sep 17 00:00:00 2001 From: denise Date: Thu, 13 Sep 2012 17:19:08 -0400 Subject: [PATCH] -renamed AIRTIME_DEV_README to AIRTIME_DEV_README_COLUMN_FILTER -added new diff file for dataTables.ColVis.js --- ...EADME => AIRTIME_DEV_README_COLUMN_FILTER} | 0 .../plugin/AIRTIME_DEV_README_COL_VIS | 33 +++++++++++++++++++ 2 files changed, 33 insertions(+) rename airtime_mvc/public/js/datatables/plugin/{AIRTIME_DEV_README => AIRTIME_DEV_README_COLUMN_FILTER} (100%) create mode 100644 airtime_mvc/public/js/datatables/plugin/AIRTIME_DEV_README_COL_VIS diff --git a/airtime_mvc/public/js/datatables/plugin/AIRTIME_DEV_README b/airtime_mvc/public/js/datatables/plugin/AIRTIME_DEV_README_COLUMN_FILTER similarity index 100% rename from airtime_mvc/public/js/datatables/plugin/AIRTIME_DEV_README rename to airtime_mvc/public/js/datatables/plugin/AIRTIME_DEV_README_COLUMN_FILTER diff --git a/airtime_mvc/public/js/datatables/plugin/AIRTIME_DEV_README_COL_VIS b/airtime_mvc/public/js/datatables/plugin/AIRTIME_DEV_README_COL_VIS new file mode 100644 index 000000000..c332d036e --- /dev/null +++ b/airtime_mvc/public/js/datatables/plugin/AIRTIME_DEV_README_COL_VIS @@ -0,0 +1,33 @@ +Before you overwrite dataTables.ColVis.js, note that we have changed a few lines +in this file. + +The following function has been modified: + +_fnDomBaseButton + +The new _fnDomBaseButton looks like this: + + "_fnDomBaseButton": function ( text ) + { + var + that = this, + nButton = document.createElement('button'), + nSpan = document.createElement('span'), + sEvent = this.s.activate=="mouseover" ? "mouseover" : "click"; + + //nButton.className = !this.s.dt.bJUI ? "ColVis_Button TableTools_Button" : + //"ColVis_Button TableTools_Button ui-button ui-state-default"; + nButton.className = "btn-toolbar btn btn-small dropdown-toggle ColVis_MasterButton"; + + nButton.appendChild( nSpan ); + $(nButton).append(""); + nSpan.innerHTML = text; + + $(nButton).bind( 'click', function (e) { + that._fnCollectionShow(); + e.preventDefault(); + } ); + + return nButton; + }, + \ No newline at end of file