diff --git a/airtime_mvc/public/js/airtime/playouthistory/historytable.js b/airtime_mvc/public/js/airtime/playouthistory/historytable.js
index 785413c0d..a7853fec3 100644
--- a/airtime_mvc/public/js/airtime/playouthistory/historytable.js
+++ b/airtime_mvc/public/js/airtime/playouthistory/historytable.js
@@ -18,19 +18,28 @@ var AIRTIME = (function(AIRTIME) {
len = this.s.dt.nTFoot === null ? lines-1 : lines-2,
plural = (len==1) ? "" : "s";
alert(sprintf($.i18n._('Copied %s row%s to the clipboard'), len, plural));
- }
+ },
+ //set because only the checkbox row is not sortable.
+ "mColumns": "sortable"
},
{
"sExtends": "csv",
- "fnClick": setFlashFileName
+ "fnClick": setFlashFileName,
+ //set because only the checkbox row is not sortable.
+ "mColumns": "sortable"
},
{
"sExtends": "pdf",
- "fnClick": setFlashFileName
+ "fnClick": setFlashFileName,
+ "sPdfOrientation": "landscape",
+ //set because only the checkbox row is not sortable.
+ "mColumns": "sortable"
},
{
"sExtends": "print",
- "sInfo" : sprintf($.i18n._("%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished."), "
", "
")
+ "sInfo" : sprintf($.i18n._("%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished."), "
", "
"),
+ //set because only the checkbox row is not sortable.
+ "mColumns": "sortable"
}
]
};
@@ -78,8 +87,7 @@ var AIRTIME = (function(AIRTIME) {
if (oConfig.sExtends == "pdf") {
this.fnSetText( oFlash,
- //"title:"+ this.fnGetTitle(oConfig) +"\n"+
- "title: Testing the Title Out\n"+
+ "title:"+ this.fnGetTitle(oConfig) +"\n"+
"message:"+ oConfig.sPdfMessage +"\n"+
"colWidth:"+ this.fnCalcColRatios(oConfig) +"\n"+
"orientation:"+ oConfig.sPdfOrientation +"\n"+
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/as3/ZeroClipboard.as b/airtime_mvc/public/js/datatables/plugin/TableTools/as3/ZeroClipboard.as
deleted file mode 100644
index 367b0497d..000000000
--- a/airtime_mvc/public/js/datatables/plugin/TableTools/as3/ZeroClipboard.as
+++ /dev/null
@@ -1,221 +0,0 @@
-/* Compile using: mxmlc --target-player=10.0.0 ZeroClipboard.as */
-package {
- import flash.display.Stage;
- import flash.display.Sprite;
- import flash.display.LoaderInfo;
- import flash.display.StageScaleMode;
- import flash.events.*;
- import flash.display.StageAlign;
- import flash.display.StageScaleMode;
- import flash.external.ExternalInterface;
- import flash.system.Security;
- import flash.utils.*;
- import flash.system.System;
- import flash.net.FileReference;
- import flash.net.FileFilter;
-
- public class ZeroClipboard extends Sprite {
-
- private var domId:String = '';
- private var button:Sprite;
- private var clipText:String = 'blank';
- private var fileName:String = '';
- private var action:String = 'copy';
- private var incBom:Boolean = true;
- private var charSet:String = 'utf8';
-
-
- public function ZeroClipboard() {
- // constructor, setup event listeners and external interfaces
- stage.scaleMode = StageScaleMode.EXACT_FIT;
- flash.system.Security.allowDomain("*");
-
- // import flashvars
- var flashvars:Object = LoaderInfo( this.root.loaderInfo ).parameters;
- domId = flashvars.id;
-
- // invisible button covers entire stage
- button = new Sprite();
- button.buttonMode = true;
- button.useHandCursor = true;
- button.graphics.beginFill(0x00FF00);
- button.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
- button.alpha = 0.0;
- addChild(button);
-
- button.addEventListener(MouseEvent.CLICK, clickHandler);
- button.addEventListener(MouseEvent.MOUSE_OVER, function(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'mouseOver', null );
- } );
- button.addEventListener(MouseEvent.MOUSE_OUT, function(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'mouseOut', null );
- } );
- button.addEventListener(MouseEvent.MOUSE_DOWN, function(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'mouseDown', null );
- } );
- button.addEventListener(MouseEvent.MOUSE_UP, function(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'mouseUp', null );
- } );
-
- // External functions - readd whenever the stage is made active for IE
- addCallbacks();
- stage.addEventListener(Event.ACTIVATE, addCallbacks);
-
- // signal to the browser that we are ready
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'load', null );
- }
-
- public function addCallbacks ():void {
- ExternalInterface.addCallback("setHandCursor", setHandCursor);
- ExternalInterface.addCallback("clearText", clearText);
- ExternalInterface.addCallback("setText", setText);
- ExternalInterface.addCallback("appendText", appendText);
- ExternalInterface.addCallback("setFileName", setFileName);
- ExternalInterface.addCallback("setAction", setAction);
- ExternalInterface.addCallback("setCharSet", setCharSet);
- ExternalInterface.addCallback("setBomInc", setBomInc);
- }
-
-
- public function setCharSet(newCharSet:String):void {
- if ( newCharSet == 'UTF16LE' ) {
- charSet = newCharSet;
- } else {
- charSet = 'UTF8';
- }
- }
-
- public function setBomInc(newBomInc:Boolean):void {
- incBom = newBomInc;
- }
-
- public function clearText():void {
- clipText = '';
- }
-
- public function appendText(newText:String):void {
- clipText += newText;
- }
-
- public function setText(newText:String):void {
- clipText = newText;
- }
-
- public function setFileName(newFileName:String):void {
- fileName = newFileName;
- }
-
- public function setAction(newAction:String):void {
- action = newAction;
- }
-
- public function setHandCursor(enabled:Boolean):void {
- // control whether the hand cursor is shown on rollover (true)
- // or the default arrow cursor (false)
- button.useHandCursor = enabled;
- }
-
-
- private function clickHandler(event:Event):void {
- var fileRef:FileReference = new FileReference();
- fileRef.addEventListener(Event.COMPLETE, saveComplete);
-
- if ( action == "save" ) {
- /* Save as a file */
- if ( charSet == 'UTF16LE' ) {
- fileRef.save( strToUTF16LE(clipText), fileName );
- } else {
- fileRef.save( strToUTF8(clipText), fileName );
- }
- } else if ( action == "pdf" ) {
- fileRef.save( "This instance of ZeroClipboard is not configured for PDF export. "+
- "Please use the PDF export version.", fileName+".txt" );
- } else {
- /* Copy the text to the clipboard. Note charset and BOM have no effect here */
- System.setClipboard( clipText );
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'complete', clipText );
- }
- }
-
-
- private function saveComplete(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'complete', clipText );
- }
-
-
- private function getProp( prop:String, opts:Array ):String
- {
- var i:int, iLen:int;
- for ( i=0, iLen=opts.length ; i> 8 );
- }
-
- i++;
- }
-
- return utf16;
- }
- }
-}
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/as3/ZeroClipboardPdf.as b/airtime_mvc/public/js/datatables/plugin/TableTools/as3/ZeroClipboardPdf.as
deleted file mode 100644
index 937187e43..000000000
--- a/airtime_mvc/public/js/datatables/plugin/TableTools/as3/ZeroClipboardPdf.as
+++ /dev/null
@@ -1,310 +0,0 @@
-/* Compile using: mxmlc --target-player=10.0.0 -static-link-runtime-shared-libraries=true -library-path+=lib ZeroClipboardPdf.as */
-package {
- import flash.display.Stage;
- import flash.display.Sprite;
- import flash.display.LoaderInfo;
- import flash.display.StageScaleMode;
- import flash.events.*;
- import flash.display.StageAlign;
- import flash.display.StageScaleMode;
- import flash.external.ExternalInterface;
- import flash.system.Security;
- import flash.utils.*;
- import flash.system.System;
- import flash.net.FileReference;
- import flash.net.FileFilter;
-
- /* PDF imports */
- import org.alivepdf.pdf.PDF;
- import org.alivepdf.data.Grid;
- import org.alivepdf.data.GridColumn;
- import org.alivepdf.layout.Orientation;
- import org.alivepdf.layout.Size;
- import org.alivepdf.layout.Unit;
- import org.alivepdf.display.Display;
- import org.alivepdf.saving.Method;
- import org.alivepdf.fonts.FontFamily;
- import org.alivepdf.fonts.Style;
- import org.alivepdf.fonts.CoreFont;
- import org.alivepdf.colors.RGBColor;
-
- public class ZeroClipboard extends Sprite {
-
- private var domId:String = '';
- private var button:Sprite;
- private var clipText:String = 'blank';
- private var fileName:String = '';
- private var action:String = 'copy';
- private var incBom:Boolean = true;
- private var charSet:String = 'utf8';
-
-
- public function ZeroClipboard() {
- // constructor, setup event listeners and external interfaces
- stage.scaleMode = StageScaleMode.EXACT_FIT;
- flash.system.Security.allowDomain("*");
-
- // import flashvars
- var flashvars:Object = LoaderInfo( this.root.loaderInfo ).parameters;
- domId = flashvars.id;
-
- // invisible button covers entire stage
- button = new Sprite();
- button.buttonMode = true;
- button.useHandCursor = true;
- button.graphics.beginFill(0x00FF00);
- button.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
- button.alpha = 0.0;
- addChild(button);
-
- button.addEventListener(MouseEvent.CLICK, function(event:Event):void {
- clickHandler(event);
- } );
- button.addEventListener(MouseEvent.MOUSE_OVER, function(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'mouseOver', null );
- } );
- button.addEventListener(MouseEvent.MOUSE_OUT, function(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'mouseOut', null );
- } );
- button.addEventListener(MouseEvent.MOUSE_DOWN, function(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'mouseDown', null );
- } );
- button.addEventListener(MouseEvent.MOUSE_UP, function(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'mouseUp', null );
- } );
-
- // External functions - readd whenever the stage is made active for IE
- addCallbacks();
- stage.addEventListener(Event.ACTIVATE, addCallbacks);
-
- // signal to the browser that we are ready
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'load', null );
- }
-
- public function addCallbacks ():void {
- ExternalInterface.addCallback("setHandCursor", setHandCursor);
- ExternalInterface.addCallback("clearText", clearText);
- ExternalInterface.addCallback("setText", setText);
- ExternalInterface.addCallback("appendText", appendText);
- ExternalInterface.addCallback("setFileName", setFileName);
- ExternalInterface.addCallback("setAction", setAction);
- ExternalInterface.addCallback("setCharSet", setCharSet);
- ExternalInterface.addCallback("setBomInc", setBomInc);
- }
-
-
- public function setCharSet(newCharSet:String):void {
- if ( newCharSet == 'UTF16LE' ) {
- charSet = newCharSet;
- } else {
- charSet = 'UTF8';
- }
- }
-
- public function setBomInc(newBomInc:Boolean):void {
- incBom = newBomInc;
- }
-
- public function clearText():void {
- clipText = '';
- }
-
- public function appendText(newText:String):void {
- clipText += newText;
- }
-
- public function setText(newText:String):void {
- clipText = newText;
- }
-
- public function setFileName(newFileName:String):void {
- fileName = newFileName;
- }
-
- public function setAction(newAction:String):void {
- action = newAction;
- }
-
- public function setHandCursor(enabled:Boolean):void {
- // control whether the hand cursor is shown on rollover (true)
- // or the default arrow cursor (false)
- button.useHandCursor = enabled;
- }
-
-
- private function clickHandler(event:Event):void {
- var fileRef:FileReference = new FileReference();
- fileRef.addEventListener(Event.COMPLETE, saveComplete);
-
- if ( action == "save" ) {
- /* Save as a file */
- if ( charSet == 'UTF16LE' ) {
- fileRef.save( strToUTF16LE(clipText), fileName );
- } else {
- fileRef.save( strToUTF8(clipText), fileName );
- }
- } else if ( action == "pdf" ) {
- /* Save as a PDF */
- var pdf:PDF = configPdf();
- fileRef.save( pdf.save( Method.LOCAL ), fileName );
- } else {
- /* Copy the text to the clipboard. Note charset and BOM have no effect here */
- System.setClipboard( clipText );
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'complete', clipText );
- }
- }
-
-
- private function saveComplete(event:Event):void {
- ExternalInterface.call( 'ZeroClipboard.dispatch', domId, 'complete', clipText );
- }
-
-
- private function getProp( prop:String, opts:Array ):String
- {
- var i:int, iLen:int;
- for ( i=0, iLen=opts.length ; i> 8 );
- }
-
- i++;
- }
-
- return utf16;
- }
- }
-}
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/as3/lib/AlivePDF.swc b/airtime_mvc/public/js/datatables/plugin/TableTools/as3/lib/AlivePDF.swc
deleted file mode 100644
index ee0f3f8f4..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/as3/lib/AlivePDF.swc and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/css/TableTools.css b/airtime_mvc/public/js/datatables/plugin/TableTools/css/TableTools.css
deleted file mode 100644
index 4f3dd532e..000000000
--- a/airtime_mvc/public/js/datatables/plugin/TableTools/css/TableTools.css
+++ /dev/null
@@ -1,264 +0,0 @@
-/*
- * File: TableTools.css
- * Description: Styles for TableTools 2
- * Author: Allan Jardine (www.sprymedia.co.uk)
- * Language: Javascript
- * License: LGPL / 3 point BSD
- * Project: DataTables
- *
- * Copyright 2010 Allan Jardine, all rights reserved.
- *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * CSS name space:
- * DTTT DataTables TableTools
- *
- * Colour dictionary:
- * Button border #d0d0d0
- * Button border hover #999999
- * Hover background #f0f0f0
- * Action blue #4b66d9
- *
- * Style sheet provides:
- * CONTAINER TableTools container element and styles applying to all components
- * BUTTON_STYLES Action specific button styles
- * SELECTING Row selection styles
- * COLLECTIONS Drop down list (collection) styles
- * PRINTING Print display styles
- * MISC Minor misc styles
- */
-
-
-/*
- * CONTAINER
- * TableTools container element and styles applying to all components
- */
-div.DTTT_container {
- position: relative;
- float: right;
- margin-bottom: 1em;
-}
-
-button.DTTT_button {
- position: relative;
- float: left;
- height: 30px;
- margin-right: 3px;
- padding: 3px 5px;
- border: 1px solid #d0d0d0;
- background-color: #fff;
- cursor: pointer;
- *cursor: hand;
-}
-
-button.DTTT_button::-moz-focus-inner {
- border: none !important;
- padding: 0;
-}
-
-
-/*
- * BUTTON_STYLES
- * Action specific button styles
- */
-
-button.DTTT_button_csv {
- padding-right: 30px;
- background: #6E6E6E url(../images/csv.png) no-repeat center right !important;
-}
-
-button.DTTT_button_csv_hover {
- padding-right: 30px;
- background: #868686 url(../images/csv_hover.png) no-repeat center right !important;
-}
-
-
-button.DTTT_button_xls {
- padding-right: 30px;
- background: #6E6E6E url(../images/xls.png) no-repeat center right !important;
-}
-
-button.DTTT_button_xls_hover {
- padding-right: 30px;
- border: 1px solid #999;
- background: #868686 url(../images/xls_hover.png) no-repeat center right !important;
-}
-
-
-button.DTTT_button_copy {
- padding-right: 30px;
- background: #6E6E6E url(../images/copy.png) no-repeat center right !important;
-}
-
-button.DTTT_button_copy_hover {
- padding-right: 30px;
- border: 1px solid #999;
- background: #868686 url(../images/copy_hover.png) no-repeat center right !important;
-}
-
-
-button.DTTT_button_pdf {
- padding-right: 30px;
- background: #6E6E6E url(../images/pdf.png) no-repeat center right !important;
-}
-
-button.DTTT_button_pdf_hover {
- padding-right: 30px;
- border: 1px solid #999;
- background: #868686 url(../images/pdf_hover.png) no-repeat center right !important;
-}
-
-
-button.DTTT_button_print {
- padding-right: 30px;
- background: #6E6E6E url(../images/print.png) no-repeat center right !important;
-}
-
-button.DTTT_button_print_hover {
- padding-right: 30px;
- border: 1px solid #999;
- background: #868686 url(../images/print_hover.png) no-repeat center right !important;
-}
-
-
-button.DTTT_button_text {
-}
-
-button.DTTT_button_text_hover {
- border: 1px solid #999;
- background-color: #f0f0f0;
-}
-
-
-button.DTTT_button_collection {
- padding-right: 17px;
- background: url(../images/collection.png) no-repeat center right;
-}
-
-button.DTTT_button_collection_hover {
- padding-right: 17px;
- border: 1px solid #999;
- background: #f0f0f0 url(../images/collection_hover.png) no-repeat center right;
-}
-
-
-/*
- * SELECTING
- * Row selection styles
- */
-table.DTTT_selectable tbody tr {
- cursor: pointer;
- *cursor: hand;
-}
-
-tr.DTTT_selected.odd {
- background-color: #9FAFD1;
-}
-
-tr.DTTT_selected.odd td.sorting_1 {
- background-color: #9FAFD1;
-}
-
-tr.DTTT_selected.odd td.sorting_2 {
- background-color: #9FAFD1;
-}
-
-tr.DTTT_selected.odd td.sorting_3 {
- background-color: #9FAFD1;
-}
-
-
-tr.DTTT_selected.even {
- background-color: #B0BED9;
-}
-
-tr.DTTT_selected.even td.sorting_1 {
- background-color: #B0BED9;
-}
-
-tr.DTTT_selected.even td.sorting_2 {
- background-color: #B0BED9;
-}
-
-tr.DTTT_selected.even td.sorting_3 {
- background-color: #B0BED9;
-}
-
-
-/*
- * COLLECTIONS
- * Drop down list (collection) styles
- */
-
-div.DTTT_collection {
- width: 150px;
- padding: 3px;
- border: 1px solid #ccc;
- background-color: #f3f3f3;
- overflow: hidden;
- z-index: 2002;
-}
-
-div.DTTT_collection_background {
- background: transparent url(../images/background.png) repeat top left;
- z-index: 2001;
-}
-
-div.DTTT_collection button.DTTT_button {
- float: none;
- width: 100%;
- margin-bottom: 2px;
- background-color: white;
-}
-
-
-/*
- * PRINTING
- * Print display styles
- */
-
-.DTTT_print_info {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 400px;
- height: 150px;
- margin-left: -200px;
- margin-top: -75px;
- text-align: center;
- background-color: #3f3f3f;
- color: white;
- padding: 10px 30px;
-
- opacity: 0.9;
-
- border-radius: 5px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
-
- box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
- -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
- -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
-}
-
-.DTTT_print_info h6 {
- font-weight: normal;
- font-size: 28px;
- line-height: 28px;
- margin: 1em;
-}
-
-.DTTT_print_info p {
- font-size: 14px;
- line-height: 20px;
-}
-
-
-/*
- * MISC
- * Minor misc styles
- */
-
-.DTTT_disabled {
- color: #999;
-}
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/css/TableTools_JUI.css b/airtime_mvc/public/js/datatables/plugin/TableTools/css/TableTools_JUI.css
deleted file mode 100644
index 95996ed2b..000000000
--- a/airtime_mvc/public/js/datatables/plugin/TableTools/css/TableTools_JUI.css
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- * File: TableTools.css
- * Description: Styles for TableTools 2 with JUI theming
- * Author: Allan Jardine (www.sprymedia.co.uk)
- * Language: Javascript
- * License: LGPL / 3 point BSD
- * Project: DataTables
- *
- * Copyright 2010 Allan Jardine, all rights reserved.
- *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Notes:
- * Generally speaking, please refer to the TableTools.css file - this file contains basic
- * modifications to that 'master' stylesheet for ThemeRoller.
- *
- * CSS name space:
- * DTTT DataTables TableTools
- *
- * Colour dictionary:
- * Button border #d0d0d0
- * Button border hover #999999
- * Hover background #f0f0f0
- * Action blue #4b66d9
- *
- * Style sheet provides:
- * CONTAINER TableTools container element and styles applying to all components
- * SELECTING Row selection styles
- * COLLECTIONS Drop down list (collection) styles
- * PRINTING Print display styles
- * MISC Minor misc styles
- */
-
-
-/*
- * CONTAINER
- * TableTools container element and styles applying to all components
- */
-div.DTTT_container {
- position: relative;
- float: left;
-}
-
-button.DTTT_button {
- position: relative;
- float: left;
- height: 24px;
- margin-right: 3px;
- padding: 3px 10px;
- border: 1px solid #d0d0d0;
- background-color: #fff;
- cursor: pointer;
- *cursor: hand;
-}
-
-button.DTTT_button::-moz-focus-inner {
- border: none !important;
- padding: 0;
-}
-
-
-
-/*
- * SELECTING
- * Row selection styles
- */
-table.DTTT_selectable tbody tr {
- cursor: pointer;
- *cursor: hand;
-}
-
-tr.DTTT_selected.odd {
- background-color: #9FAFD1;
-}
-
-tr.DTTT_selected.odd td.sorting_1 {
- background-color: #9FAFD1;
-}
-
-tr.DTTT_selected.odd td.sorting_2 {
- background-color: #9FAFD1;
-}
-
-tr.DTTT_selected.odd td.sorting_3 {
- background-color: #9FAFD1;
-}
-
-
-tr.DTTT_selected.even {
- background-color: #B0BED9;
-}
-
-tr.DTTT_selected.even td.sorting_1 {
- background-color: #B0BED9;
-}
-
-tr.DTTT_selected.even td.sorting_2 {
- background-color: #B0BED9;
-}
-
-tr.DTTT_selected.even td.sorting_3 {
- background-color: #B0BED9;
-}
-
-
-/*
- * COLLECTIONS
- * Drop down list (collection) styles
- */
-
-div.DTTT_collection {
- width: 150px;
- background-color: #f3f3f3;
- overflow: hidden;
- z-index: 2002;
-
- box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
- -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
- -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
-}
-
-div.DTTT_collection_background {
- background: url(../images/background.png) repeat top left;
- z-index: 2001;
-}
-
-div.DTTT_collection button.DTTT_button {
- float: none;
- width: 100%;
- margin-bottom: -0.1em;
-}
-
-
-/*
- * PRINTING
- * Print display styles
- */
-
-.DTTT_print_info {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 400px;
- height: 150px;
- margin-left: -200px;
- margin-top: -75px;
- text-align: center;
- background-color: #3f3f3f;
- color: white;
- padding: 10px 30px;
-
- opacity: 0.9;
-
- border-radius: 5px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
-
- box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
- -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
- -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
-}
-
-.DTTT_print_info h6 {
- font-weight: normal;
- font-size: 28px;
- line-height: 28px;
- margin: 1em;
-}
-
-.DTTT_print_info p {
- font-size: 14px;
- line-height: 20px;
-}
-
-
-/*
- * MISC
- * Minor misc styles
- */
-
-.DTTT_disabled {
- color: #999;
-}
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/background.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/background.png
deleted file mode 100644
index 915efba68..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/background.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/collection.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/collection.png
deleted file mode 100644
index 5dd4dfdf6..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/collection.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/collection_hover.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/collection_hover.png
deleted file mode 100644
index 7b37b1e96..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/collection_hover.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/copy.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/copy.png
deleted file mode 100644
index 5b01ab165..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/copy.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/copy_hover.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/copy_hover.png
deleted file mode 100644
index 039a7fc32..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/copy_hover.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/csv.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/csv.png
deleted file mode 100644
index 43df1559f..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/csv.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/csv_hover.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/csv_hover.png
deleted file mode 100644
index 10b34d3b9..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/csv_hover.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/pdf.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/pdf.png
deleted file mode 100644
index 1b038d088..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/pdf.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/pdf_hover.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/pdf_hover.png
deleted file mode 100644
index eb06855f4..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/pdf_hover.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/print.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/print.png
deleted file mode 100644
index 2db08242a..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/print.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/print_hover.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/print_hover.png
deleted file mode 100644
index 9808a9cc9..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/print_hover.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/collection.psd b/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/collection.psd
deleted file mode 100644
index 7eb7caf2c..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/collection.psd and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/file_types.psd b/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/file_types.psd
deleted file mode 100644
index 0f280ad52..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/file_types.psd and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/printer.psd b/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/printer.psd
deleted file mode 100644
index 8c33f7aaa..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/psd/printer.psd and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/xls.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/xls.png
deleted file mode 100644
index 5aaf40d0e..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/xls.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/images/xls_hover.png b/airtime_mvc/public/js/datatables/plugin/TableTools/images/xls_hover.png
deleted file mode 100644
index 5b1930afd..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/images/xls_hover.png and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.js b/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.js
deleted file mode 100644
index 3e02c2c08..000000000
--- a/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.js
+++ /dev/null
@@ -1,2569 +0,0 @@
-/*
- * File: TableTools.js
- * Version: 2.0.2
- * Description: Tools and buttons for DataTables
- * Author: Allan Jardine (www.sprymedia.co.uk)
- * Language: Javascript
- * License: GPL v2 or BSD 3 point style
- * Project: DataTables
- *
- * Copyright 2009-2012 Allan Jardine, all rights reserved.
- *
- * This source file is free software, under either the GPL v2 license or a
- * BSD style license, available at:
- * http://datatables.net/license_gpl2
- * http://datatables.net/license_bsd
- */
-
-/* Global scope for TableTools */
-var TableTools;
-
-(function($, window, document) {
-
-/**
- * TableTools provides flexible buttons and other tools for a DataTables enhanced table
- * @class TableTools
- * @constructor
- * @param {Object} oDT DataTables instance
- * @param {Object} oOpts TableTools options
- * @param {String} oOpts.sSwfPath ZeroClipboard SWF path
- * @param {String} oOpts.sRowSelect Row selection options - 'none', 'single' or 'multi'
- * @param {Function} oOpts.fnPreRowSelect Callback function just prior to row selection
- * @param {Function} oOpts.fnRowSelected Callback function just after row selection
- * @param {Function} oOpts.fnRowDeselected Callback function when row is deselected
- * @param {Array} oOpts.aButtons List of buttons to be used
- */
-TableTools = function( oDT, oOpts )
-{
- /* Santiy check that we are a new instance */
- if ( !this.CLASS || this.CLASS != "TableTools" )
- {
- alert( "Warning: TableTools must be initialised with the keyword 'new'" );
- }
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Public class variables
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
- /**
- * @namespace Settings object which contains customisable information for TableTools instance
- */
- this.s = {
- /**
- * Store 'this' so the instance can be retreieved from the settings object
- * @property that
- * @type object
- * @default this
- */
- "that": this,
-
- /**
- * DataTables settings objects
- * @property dt
- * @type object
- * @default null
- */
- "dt": null,
-
- /**
- * @namespace Print specific information
- */
- "print": {
- /**
- * DataTables draw 'start' point before the printing display was shown
- * @property saveStart
- * @type int
- * @default -1
- */
- "saveStart": -1,
-
- /**
- * DataTables draw 'length' point before the printing display was shown
- * @property saveLength
- * @type int
- * @default -1
- */
- "saveLength": -1,
-
- /**
- * Page scrolling point before the printing display was shown so it can be restored
- * @property saveScroll
- * @type int
- * @default -1
- */
- "saveScroll": -1,
-
- /**
- * Wrapped function to end the print display (to maintain scope)
- * @property funcEnd
- * @type Function
- * @default function () {}
- */
- "funcEnd": function () {}
- },
-
- /**
- * A unique ID is assigned to each button in each instance
- * @property buttonCounter
- * @type int
- * @default 0
- */
- "buttonCounter": 0,
-
- /**
- * @namespace Select rows specific information
- */
- "select": {
- /**
- * Select type - can be 'none', 'single' or 'multi'
- * @property type
- * @type string
- * @default ""
- */
- "type": "",
-
- /**
- * Array of nodes which are currently selected
- * @property selected
- * @type array
- * @default []
- */
- "selected": [],
-
- /**
- * Function to run before the selection can take place. Will cancel the select if the
- * function returns false
- * @property preRowSelect
- * @type Function
- * @default null
- */
- "preRowSelect": null,
-
- /**
- * Function to run when a row is selected
- * @property postSelected
- * @type Function
- * @default null
- */
- "postSelected": null,
-
- /**
- * Function to run when a row is deselected
- * @property postDeselected
- * @type Function
- * @default null
- */
- "postDeselected": null,
-
- /**
- * Indicate if all rows are selected (needed for server-side processing)
- * @property all
- * @type boolean
- * @default false
- */
- "all": false,
-
- /**
- * Class name to add to selected TR nodes
- * @property selectedClass
- * @type String
- * @default ""
- */
- "selectedClass": ""
- },
-
- /**
- * Store of the user input customisation object
- * @property custom
- * @type object
- * @default {}
- */
- "custom": {},
-
- /**
- * SWF movie path
- * @property swfPath
- * @type string
- * @default ""
- */
- "swfPath": "",
-
- /**
- * Default button set
- * @property buttonSet
- * @type array
- * @default []
- */
- "buttonSet": [],
-
- /**
- * When there is more than one TableTools instance for a DataTable, there must be a
- * master which controls events (row selection etc)
- * @property master
- * @type boolean
- * @default false
- */
- "master": false
- };
-
-
- /**
- * @namespace Common and useful DOM elements for the class instance
- */
- this.dom = {
- /**
- * DIV element that is create and all TableTools buttons (and their children) put into
- * @property container
- * @type node
- * @default null
- */
- "container": null,
-
- /**
- * The table node to which TableTools will be applied
- * @property table
- * @type node
- * @default null
- */
- "table": null,
-
- /**
- * @namespace Nodes used for the print display
- */
- "print": {
- /**
- * Nodes which have been removed from the display by setting them to display none
- * @property hidden
- * @type array
- * @default []
- */
- "hidden": [],
-
- /**
- * The information display saying tellng the user about the print display
- * @property message
- * @type node
- * @default null
- */
- "message": null
- },
-
- /**
- * @namespace Nodes used for a collection display. This contains the currently used collection
- */
- "collection": {
- /**
- * The div wrapper containing the buttons in the collection (i.e. the menu)
- * @property collection
- * @type node
- * @default null
- */
- "collection": null,
-
- /**
- * Background display to provide focus and capture events
- * @property background
- * @type node
- * @default null
- */
- "background": null
- }
- };
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Public class methods
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
- /**
- * Retreieve the settings object from an instance
- * @method fnSettings
- * @returns {object} TableTools settings object
- */
- this.fnSettings = function () {
- return this.s;
- };
-
-
- /* Constructor logic */
- if ( typeof oOpts == 'undefined' )
- {
- oOpts = {};
- }
-
- this.s.dt = oDT.fnSettings();
- this._fnConstruct( oOpts );
-
- return this;
-};
-
-
-
-TableTools.prototype = {
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Public methods
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
- /**
- * Retreieve the settings object from an instance
- * @method fnGetSelected
- * @returns {array} List of TR nodes which are currently selected
- */
- "fnGetSelected": function ()
- {
- var masterS = this._fnGetMasterSettings();
- return masterS.select.selected;
- },
-
-
- /**
- * Get the data source objects/arrays from DataTables for the selected rows (same as
- * fnGetSelected followed by fnGetData on each row from the table)
- * @method fnGetSelectedData
- * @returns {array} Data from the TR nodes which are currently selected
- */
- "fnGetSelectedData": function ()
- {
- var masterS = this._fnGetMasterSettings();
- var selected = masterS.select.selected;
- var out = [];
-
- for ( var i=0, iLen=selected.length ; i 0 )
- {
- sTitle = anTitle[0].innerHTML;
- }
- }
-
- /* Strip characters which the OS will object to - checking for UTF8 support in the scripting
- * engine
- */
- if ( "\u00A1".toString().length < 4 ) {
- return sTitle.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g, "");
- } else {
- return sTitle.replace(/[^a-zA-Z0-9_\.,\-_ !\(\)]/g, "");
- }
- },
-
-
- /**
- * Calculate a unity array with the column width by proportion for a set of columns to be
- * included for a button. This is particularly useful for PDF creation, where we can use the
- * column widths calculated by the browser to size the columns in the PDF.
- * @method fnCalcColRations
- * @param {Object} oConfig Button configuration object
- * @returns {Array} Unity array of column ratios
- */
- "fnCalcColRatios": function ( oConfig )
- {
- var
- aoCols = this.s.dt.aoColumns,
- aColumnsInc = this._fnColumnTargets( oConfig.mColumns ),
- aColWidths = [],
- iWidth = 0, iTotal = 0, i, iLen;
-
- for ( i=0, iLen=aColumnsInc.length ; iiDocHeight)? iWinHeight : iDocHeight) +"px";
- nBackground.style.width = ((iWinWidth>iDocWidth)? iWinWidth : iDocWidth) +"px";
- nBackground.className = "DTTT_collection_background";
- $(nBackground).css('opacity',0);
-
- document.body.appendChild( nBackground );
- document.body.appendChild( nHidden );
-
- /* Visual corrections to try and keep the collection visible */
- var iDivWidth = $(nHidden).outerWidth();
- var iDivHeight = $(nHidden).outerHeight();
-
- if ( iDivX + iDivWidth > iDocWidth )
- {
- nHidden.style.left = (iDocWidth-iDivWidth)+"px";
- }
-
- if ( iDivY + iDivHeight > iDocHeight )
- {
- nHidden.style.top = (iDivY-iDivHeight-$(nButton).outerHeight())+"px";
- }
-
- this.dom.collection.collection = nHidden;
- this.dom.collection.background = nBackground;
-
- /* This results in a very small delay for the end user but it allows the animation to be
- * much smoother. If you don't want the animation, then the setTimeout can be removed
- */
- setTimeout( function () {
- $(nHidden).animate({"opacity": 1}, 500);
- $(nBackground).animate({"opacity": 0.25}, 500);
- }, 10 );
-
- /* Event handler to remove the collection display */
- $(nBackground).click( function () {
- that._fnCollectionHide.call( that, null, null );
- } );
- },
-
-
- /**
- * Hide a button collection
- * @param {Node} nButton Button to use for the collection
- * @param {Object} oConfig Button configuration object
- * @returns void
- * @private
- */
- "_fnCollectionHide": function ( nButton, oConfig )
- {
- if ( oConfig !== null && oConfig.sExtends == 'collection' )
- {
- return;
- }
-
- if ( this.dom.collection.collection !== null )
- {
- $(this.dom.collection.collection).animate({"opacity": 0}, 500, function (e) {
- this.style.display = "none";
- } );
-
- $(this.dom.collection.background).animate({"opacity": 0}, 500, function (e) {
- this.parentNode.removeChild( this );
- } );
-
- this.dom.collection.collection = null;
- this.dom.collection.background = null;
- }
- },
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Row selection functions
- */
-
- /**
- * Add event handlers to a table to allow for row selection
- * @method _fnRowSelectConfig
- * @returns void
- * @private
- */
- "_fnRowSelectConfig": function ()
- {
- if ( this.s.master )
- {
- var
- that = this,
- i, iLen,
- aoOpenRows = this.s.dt.aoOpenRows;
-
- $(that.s.dt.nTable).addClass( 'DTTT_selectable' );
-
- $('tr', that.s.dt.nTBody).live( 'click', function(e) {
- /* Sub-table must be ignored (odd that the selector won't do this with >) */
- if ( this.parentNode != that.s.dt.nTBody )
- {
- return;
- }
-
- /* Check that we are actually working with a DataTables controlled row */
- var anTableRows = that.s.dt.oInstance.fnGetNodes();
- if ( $.inArray( this, anTableRows ) === -1 ) {
- return;
- }
-
- /* User defined selection function */
- if ( that.s.select.preRowSelect !== null && !that.s.select.preRowSelect.call(that, e) )
- {
- return;
- }
-
- /* And go */
- if ( that.s.select.type == "single" )
- {
- that._fnRowSelectSingle.call( that, this );
- }
- else
- {
- that._fnRowSelectMulti.call( that, this );
- }
- } );
-
- /* Add a draw callback handler for when 'select' all is active and we are using server-side
- * processing, so TableTools will automatically select the new rows for us
- */
- that.s.dt.aoDrawCallback.push( {
- "fn": function () {
- if ( that.s.select.all && that.s.dt.oFeatures.bServerSide )
- {
- that.fnSelectAll();
- }
- },
- "sName": "TableTools_select"
- } );
- }
- },
-
-
- /**
- * Select or deselect a row based on its current state when only one row is allowed to be
- * selected at a time (i.e. if there is a row already selected, deselect it). If the selected
- * row is the one being passed in, just deselect and take no further action.
- * @method _fnRowSelectSingle
- * @param {Node} nNode TR element which is being 'activated' in some way
- * @returns void
- * @private
- */
- "_fnRowSelectSingle": function ( nNode )
- {
- if ( this.s.master )
- {
- /* Do nothing on the DataTables 'empty' result set row */
- if ( $('td', nNode).hasClass(this.s.dt.oClasses.sRowEmpty) )
- {
- return;
- }
-
- if ( $(nNode).hasClass(this.s.select.selectedClass) )
- {
- this._fnRowDeselect( nNode );
- }
- else
- {
- if ( this.s.select.selected.length !== 0 )
- {
- this._fnRowDeselectAll();
- }
-
- this.s.select.selected.push( nNode );
- $(nNode).addClass( this.s.select.selectedClass );
-
- if ( this.s.select.postSelected !== null )
- {
- this.s.select.postSelected.call( this, nNode );
- }
- }
-
- TableTools._fnEventDispatch( this, 'select', nNode );
- }
- },
-
-
- /**
- * Select or deselect a row based on its current state when multiple rows are allowed to be
- * selected.
- * @method _fnRowSelectMulti
- * @param {Node} nNode TR element which is being 'activated' in some way
- * @returns void
- * @private
- */
- "_fnRowSelectMulti": function ( nNode )
- {
- if ( this.s.master )
- {
- /* Do nothing on the DataTables 'empty' result set row */
- if ( $('td', nNode).hasClass(this.s.dt.oClasses.sRowEmpty) )
- {
- return;
- }
-
- if ( $(nNode).hasClass(this.s.select.selectedClass) )
- {
- this._fnRowDeselect( nNode );
- }
- else
- {
- this.s.select.selected.push( nNode );
- $(nNode).addClass( this.s.select.selectedClass );
-
- if ( this.s.select.postSelected !== null )
- {
- this.s.select.postSelected.call( this, nNode );
- }
- }
-
- TableTools._fnEventDispatch( this, 'select', nNode );
- }
- },
-
-
- /**
- * Select all TR elements in the table. Note that this function will still operate in 'single'
- * select mode, which might not be what you desire (in which case, don't call this function!)
- * @method _fnRowSelectAll
- * @returns void
- * @private
- */
- "_fnRowSelectAll": function ( )
- {
- if ( this.s.master )
- {
- var n;
- for ( var i=0, iLen=this.s.dt.aiDisplayMaster.length ; i=0 ; i-- )
- {
- this._fnRowDeselect( i, false );
- }
-
- if ( this.s.select.postDeselected !== null )
- {
- this.s.select.postDeselected.call( this, null );
- }
-
- this.s.select.all = false;
- TableTools._fnEventDispatch( this, 'select', null );
- }
- },
-
-
- /**
- * Deselect a single row, based on its index in the selected array, or a TR node (when the
- * index is then computed)
- * @method _fnRowDeselect
- * @param {int|Node} i Node or index of node in selected array, which is to be deselected
- * @param {bool} [action=true] Run the post deselected method or not
- * @returns void
- * @private
- */
- "_fnRowDeselect": function ( i, action )
- {
- if ( typeof i.nodeName != 'undefined' )
- {
- i = $.inArray( i, this.s.select.selected );
- }
-
- var nNode = this.s.select.selected[i];
- $(nNode).removeClass(this.s.select.selectedClass);
- this.s.select.selected.splice( i, 1 );
-
- if ( (typeof action == 'undefined' || action) && this.s.select.postDeselected !== null )
- {
- this.s.select.postDeselected.call( this, nNode );
- }
-
- this.s.select.all = false;
- },
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Text button functions
- */
-
- /**
- * Configure a text based button for interaction events
- * @method _fnTextConfig
- * @param {Node} nButton Button element which is being considered
- * @param {Object} oConfig Button configuration object
- * @returns void
- * @private
- */
- "_fnTextConfig": function ( nButton, oConfig )
- {
- var that = this;
-
- if ( oConfig.fnInit !== null )
- {
- oConfig.fnInit.call( this, nButton, oConfig );
- }
-
- if ( oConfig.sToolTip !== "" )
- {
- nButton.title = oConfig.sToolTip;
- }
-
- $(nButton).hover( function () {
- $(nButton).addClass(oConfig.sButtonClassHover );
- if ( oConfig.fnMouseover !== null )
- {
- oConfig.fnMouseover.call( this, nButton, oConfig, null );
- }
- }, function () {
- $(nButton).removeClass( oConfig.sButtonClassHover );
- if ( oConfig.fnMouseout !== null )
- {
- oConfig.fnMouseout.call( this, nButton, oConfig, null );
- }
- } );
-
- if ( oConfig.fnSelect !== null )
- {
- TableTools._fnEventListen( this, 'select', function (n) {
- oConfig.fnSelect.call( that, nButton, oConfig, n );
- } );
- }
-
- $(nButton).click( function (e) {
- e.preventDefault();
-
- if ( oConfig.fnClick !== null )
- {
- oConfig.fnClick.call( that, nButton, oConfig, null );
- }
-
- /* Provide a complete function to match the behaviour of the flash elements */
- if ( oConfig.fnComplete !== null )
- {
- oConfig.fnComplete.call( that, nButton, oConfig, null, null );
- }
-
- that._fnCollectionHide( nButton, oConfig );
- } );
- },
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Flash button functions
- */
-
- /**
- * Configure a flash based button for interaction events
- * @method _fnFlashConfig
- * @param {Node} nButton Button element which is being considered
- * @param {o} oConfig Button configuration object
- * @returns void
- * @private
- */
- "_fnFlashConfig": function ( nButton, oConfig )
- {
- var that = this;
- var flash = new ZeroClipboard.Client();
-
- if ( oConfig.fnInit !== null )
- {
- oConfig.fnInit.call( this, nButton, oConfig );
- }
-
- flash.setHandCursor( true );
-
- if ( oConfig.sAction == "flash_save" )
- {
- flash.setAction( 'save' );
- flash.setCharSet( (oConfig.sCharSet=="utf16le") ? 'UTF16LE' : 'UTF8' );
- flash.setBomInc( oConfig.bBomInc );
- flash.setFileName( oConfig.sFileName.replace('*', this.fnGetTitle(oConfig)) );
- }
- else if ( oConfig.sAction == "flash_pdf" )
- {
- flash.setAction( 'pdf' );
- flash.setFileName( oConfig.sFileName.replace('*', this.fnGetTitle(oConfig)) );
- }
- else
- {
- flash.setAction( 'copy' );
- }
-
- flash.addEventListener('mouseOver', function(client) {
- $(nButton).addClass(oConfig.sButtonClassHover );
-
- if ( oConfig.fnMouseover !== null )
- {
- oConfig.fnMouseover.call( that, nButton, oConfig, flash );
- }
- } );
-
- flash.addEventListener('mouseOut', function(client) {
- $(nButton).removeClass( oConfig.sButtonClassHover );
-
- if ( oConfig.fnMouseout !== null )
- {
- oConfig.fnMouseout.call( that, nButton, oConfig, flash );
- }
- } );
-
- flash.addEventListener('mouseDown', function(client) {
- if ( oConfig.fnClick !== null )
- {
- oConfig.fnClick.call( that, nButton, oConfig, flash );
- }
- } );
-
- flash.addEventListener('complete', function (client, text) {
- if ( oConfig.fnComplete !== null )
- {
- oConfig.fnComplete.call( that, nButton, oConfig, flash, text );
- }
- that._fnCollectionHide( nButton, oConfig );
- } );
-
- this._fnFlashGlue( flash, nButton, oConfig.sToolTip );
- },
-
-
- /**
- * Wait until the id is in the DOM before we "glue" the swf. Note that this function will call
- * itself (using setTimeout) until it completes successfully
- * @method _fnFlashGlue
- * @param {Object} clip Zero clipboard object
- * @param {Node} node node to glue swf to
- * @param {String} text title of the flash movie
- * @returns void
- * @private
- */
- "_fnFlashGlue": function ( flash, node, text )
- {
- var that = this;
- var id = node.getAttribute('id');
-
- if ( document.getElementById(id) )
- {
- flash.glue( node, text );
-
- /* Catch those who are using a TableTools 1 version of ZeroClipboard */
- if ( flash.domElement.parentNode != flash.div.parentNode &&
- typeof that.__bZCWarning == 'undefined' )
- {
- that.s.dt.oApi._fnLog( this.s.dt, 0, "It looks like you are using the version of "+
- "ZeroClipboard which came with TableTools 1. Please update to use the version that "+
- "came with TableTools 2." );
- that.__bZCWarning = true;
- }
- }
- else
- {
- setTimeout( function () {
- that._fnFlashGlue( flash, node, text );
- }, 100 );
- }
- },
-
-
- /**
- * Set the text for the flash clip to deal with
- *
- * This function is required for large information sets. There is a limit on the
- * amount of data that can be transfered between Javascript and Flash in a single call, so
- * we use this method to build up the text in Flash by sending over chunks. It is estimated
- * that the data limit is around 64k, although it is undocuments, and appears to be different
- * between different flash versions. We chunk at 8KiB.
- * @method _fnFlashSetText
- * @param {Object} clip the ZeroClipboard object
- * @param {String} sData the data to be set
- * @returns void
- * @private
- */
- "_fnFlashSetText": function ( clip, sData )
- {
- var asData = this._fnChunkData( sData, 8192 );
-
- clip.clearText();
- for ( var i=0, iLen=asData.length ; i/g, "" ).replace(/^\s+|\s+$/g,"");
- sLoopData = this._fnHtmlDecode( sLoopData );
-
- sData += this._fnBoundData( sLoopData, oConfig.sFieldBoundary, regex ) +
- oConfig.sFieldSeperator;
- }
- }
- sData = sData.slice( 0, oConfig.sFieldSeperator.length*-1 );
- sData += sNewline;
- }
-
- /*
- * Body
- */
- for ( j=0, jLen=dt.aiDisplay.length ; j]+)).*?>/gi,
- '$1$2$3');
- sLoopData = sLoopData.replace( /<.*?>/g, "" );
- }
- else
- {
- sLoopData = mTypeData+"";
- }
-
- /* Trim and clean the data */
- sLoopData = sLoopData.replace(/^\s+/, '').replace(/\s+$/, '');
- sLoopData = this._fnHtmlDecode( sLoopData );
-
- /* Bound it and add it to the total data */
- sData += this._fnBoundData( sLoopData, oConfig.sFieldBoundary, regex ) +
- oConfig.sFieldSeperator;
- }
- }
- sData = sData.slice( 0, oConfig.sFieldSeperator.length*-1 );
- sData += sNewline;
- }
- }
-
- /* Remove the last new line */
- sData.slice( 0, -1 );
-
- /*
- * Footer
- */
- if ( oConfig.bFooter )
- {
- for ( i=0, iLen=dt.aoColumns.length ; i/g, "" );
- sLoopData = this._fnHtmlDecode( sLoopData );
-
- sData += this._fnBoundData( sLoopData, oConfig.sFieldBoundary, regex ) +
- oConfig.sFieldSeperator;
- }
- }
- sData = sData.slice( 0, oConfig.sFieldSeperator.length*-1 );
- }
-
- /* No pointers here - this is a string copy :-) */
- _sLastData = sData;
- return sData;
- },
-
-
- /**
- * Wrap data up with a boundary string
- * @method _fnBoundData
- * @param {String} sData data to bound
- * @param {String} sBoundary bounding char(s)
- * @param {RegExp} regex search for the bounding chars - constructed outside for efficincy
- * in the loop
- * @returns {String} bound data
- * @private
- */
- "_fnBoundData": function ( sData, sBoundary, regex )
- {
- if ( sBoundary === "" )
- {
- return sData;
- }
- else
- {
- return sBoundary + sData.replace(regex, sBoundary+sBoundary) + sBoundary;
- }
- },
-
-
- /**
- * Break a string up into an array of smaller strings
- * @method _fnChunkData
- * @param {String} sData data to be broken up
- * @param {Int} iSize chunk size
- * @returns {Array} String array of broken up text
- * @private
- */
- "_fnChunkData": function ( sData, iSize )
- {
- var asReturn = [];
- var iStrlen = sData.length;
-
- for ( var i=0 ; i= 8 && iIndex > aData[i].length - 8 )
- {
- sInner = aData[i].substr( iIndex );
- aData[i] = aData[i].substr( 0, iIndex );
- }
-
- n.innerHTML = aData[i];
- sReturn += n.childNodes[0].nodeValue;
- }
-
- return sReturn;
- },
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Printing functions
- */
-
- /**
- * Configure a button for printing
- * @method _fnPrintConfig
- * @param {Node} nButton Button element which is being considered
- * @param {Object} oConfig Button configuration object
- * @returns void
- * @private
- */
- "_fnPrintConfig": function ( nButton, oConfig )
- {
- var that = this;
-
- if ( oConfig.fnInit !== null )
- {
- oConfig.fnInit.call( this, nButton, oConfig );
- }
-
- if ( oConfig.sToolTip !== "" )
- {
- nButton.title = oConfig.sToolTip;
- }
-
- $(nButton).hover( function () {
- $(nButton).addClass(oConfig.sButtonClassHover );
- }, function () {
- $(nButton).removeClass( oConfig.sButtonClassHover );
- } );
-
- if ( oConfig.fnSelect !== null )
- {
- TableTools._fnEventListen( this, 'select', function (n) {
- oConfig.fnSelect.call( that, nButton, oConfig, n );
- } );
- }
-
- $(nButton).click( function (e) {
- e.preventDefault();
-
- that._fnPrintStart.call( that, e, oConfig);
-
- if ( oConfig.fnClick !== null )
- {
- oConfig.fnClick.call( that, nButton, oConfig, null );
- }
-
- /* Provide a complete function to match the behaviour of the flash elements */
- if ( oConfig.fnComplete !== null )
- {
- oConfig.fnComplete.call( that, nButton, oConfig, null, null );
- }
-
- that._fnCollectionHide( nButton, oConfig );
- } );
- },
-
- /**
- * Show print display
- * @method _fnPrintStart
- * @param {Event} e Event object
- * @param {Object} oConfig Button configuration object
- * @returns void
- * @private
- */
- "_fnPrintStart": function ( e, oConfig )
- {
- var that = this;
- var oSetDT = this.s.dt;
-
- /* Parse through the DOM hiding everything that isn't needed for the table */
- this._fnPrintHideNodes( oSetDT.nTable );
-
- /* Show the whole table */
- this.s.print.saveStart = oSetDT._iDisplayStart;
- this.s.print.saveLength = oSetDT._iDisplayLength;
-
- if ( oConfig.bShowAll )
- {
- oSetDT._iDisplayStart = 0;
- oSetDT._iDisplayLength = -1;
- oSetDT.oApi._fnCalculateEnd( oSetDT );
- oSetDT.oApi._fnDraw( oSetDT );
- }
-
- /* Adjust the display for scrolling which might be done by DataTables */
- if ( oSetDT.oScroll.sX !== "" || oSetDT.oScroll.sY !== "" )
- {
- this._fnPrintScrollStart( oSetDT );
- }
-
- /* Remove the other DataTables feature nodes - but leave the table! and info div */
- var anFeature = oSetDT.aanFeatures;
- for ( var cFeature in anFeature )
- {
- if ( cFeature != 'i' && cFeature != 't' && cFeature.length == 1 )
- {
- for ( var i=0, iLen=anFeature[cFeature].length ; i 0 )
- {
- oSetDT.nTable.removeChild( nTheadSize[0] );
- }
-
- if ( oSetDT.nTFoot !== null )
- {
- var nTfootSize = oSetDT.nTable.getElementsByTagName('tfoot');
- if ( nTfootSize.length > 0 )
- {
- oSetDT.nTable.removeChild( nTfootSize[0] );
- }
- }
-
- nTheadSize = oSetDT.nTHead.cloneNode(true);
- oSetDT.nTable.insertBefore( nTheadSize, oSetDT.nTable.childNodes[0] );
-
- if ( oSetDT.nTFoot !== null )
- {
- nTfootSize = oSetDT.nTFoot.cloneNode(true);
- oSetDT.nTable.insertBefore( nTfootSize, oSetDT.nTable.childNodes[1] );
- }
-
- /* Now adjust the table's viewport so we can actually see it */
- if ( oSetDT.oScroll.sX !== "" )
- {
- oSetDT.nTable.style.width = $(oSetDT.nTable).outerWidth()+"px";
- nScrollBody.style.width = $(oSetDT.nTable).outerWidth()+"px";
- nScrollBody.style.overflow = "visible";
- }
-
- if ( oSetDT.oScroll.sY !== "" )
- {
- nScrollBody.style.height = $(oSetDT.nTable).outerHeight()+"px";
- nScrollBody.style.overflow = "visible";
- }
- },
-
-
- /**
- * Take account of scrolling in DataTables by showing the full table. Note that the redraw of
- * the DataTable that we do will actually deal with the majority of the hardword here
- * @returns void
- * @private
- */
- "_fnPrintScrollEnd": function ()
- {
- var
- oSetDT = this.s.dt,
- nScrollBody = oSetDT.nTable.parentNode;
-
- if ( oSetDT.oScroll.sX !== "" )
- {
- nScrollBody.style.width = oSetDT.oApi._fnStringToCss( oSetDT.oScroll.sX );
- nScrollBody.style.overflow = "auto";
- }
-
- if ( oSetDT.oScroll.sY !== "" )
- {
- nScrollBody.style.height = oSetDT.oApi._fnStringToCss( oSetDT.oScroll.sY );
- nScrollBody.style.overflow = "auto";
- }
- },
-
-
- /**
- * Resume the display of all TableTools hidden nodes
- * @method _fnPrintShowNodes
- * @returns void
- * @private
- */
- "_fnPrintShowNodes": function ( )
- {
- var anHidden = this.dom.print.hidden;
-
- for ( var i=0, iLen=anHidden.length ; iPrint viewPlease use your browser's print function to "+
- "print this table. Press escape when finished.",
- "sMessage": "",
- "bShowAll": true,
- "sToolTip": "View print view",
- "sButtonClass": "DTTT_button_print",
- "sButtonClassHover": "DTTT_button_print_hover",
- "sButtonText": "Print",
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": null,
- "fnSelect": null,
- "fnComplete": null,
- "fnInit": null,
- "fnCellRender": null
- },
- "text": {
- "sAction": "text",
- "sToolTip": "",
- "sButtonClass": "DTTT_button_text",
- "sButtonClassHover": "DTTT_button_text_hover",
- "sButtonText": "Text button",
- "mColumns": "all",
- "bHeader": true,
- "bFooter": true,
- "bSelectedOnly": false,
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": null,
- "fnSelect": null,
- "fnComplete": null,
- "fnInit": null,
- "fnCellRender": null
- },
- "select": {
- "sAction": "text",
- "sToolTip": "",
- "sButtonClass": "DTTT_button_text",
- "sButtonClassHover": "DTTT_button_text_hover",
- "sButtonText": "Select button",
- "mColumns": "all",
- "bHeader": true,
- "bFooter": true,
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": null,
- "fnSelect": function( nButton, oConfig ) {
- if ( this.fnGetSelected().length !== 0 ) {
- $(nButton).removeClass('DTTT_disabled');
- } else {
- $(nButton).addClass('DTTT_disabled');
- }
- },
- "fnComplete": null,
- "fnInit": function( nButton, oConfig ) {
- $(nButton).addClass('DTTT_disabled');
- },
- "fnCellRender": null
- },
- "select_single": {
- "sAction": "text",
- "sToolTip": "",
- "sButtonClass": "DTTT_button_text",
- "sButtonClassHover": "DTTT_button_text_hover",
- "sButtonText": "Select button",
- "mColumns": "all",
- "bHeader": true,
- "bFooter": true,
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": null,
- "fnSelect": function( nButton, oConfig ) {
- var iSelected = this.fnGetSelected().length;
- if ( iSelected == 1 ) {
- $(nButton).removeClass('DTTT_disabled');
- } else {
- $(nButton).addClass('DTTT_disabled');
- }
- },
- "fnComplete": null,
- "fnInit": function( nButton, oConfig ) {
- $(nButton).addClass('DTTT_disabled');
- },
- "fnCellRender": null
- },
- "select_all": {
- "sAction": "text",
- "sToolTip": "",
- "sButtonClass": "DTTT_button_text",
- "sButtonClassHover": "DTTT_button_text_hover",
- "sButtonText": "Select all",
- "mColumns": "all",
- "bHeader": true,
- "bFooter": true,
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": function( nButton, oConfig ) {
- this.fnSelectAll();
- },
- "fnSelect": function( nButton, oConfig ) {
- if ( this.fnGetSelected().length == this.s.dt.fnRecordsDisplay() ) {
- $(nButton).addClass('DTTT_disabled');
- } else {
- $(nButton).removeClass('DTTT_disabled');
- }
- },
- "fnComplete": null,
- "fnInit": null,
- "fnCellRender": null
- },
- "select_none": {
- "sAction": "text",
- "sToolTip": "",
- "sButtonClass": "DTTT_button_text",
- "sButtonClassHover": "DTTT_button_text_hover",
- "sButtonText": "Deselect all",
- "mColumns": "all",
- "bHeader": true,
- "bFooter": true,
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": function( nButton, oConfig ) {
- this.fnSelectNone();
- },
- "fnSelect": function( nButton, oConfig ) {
- if ( this.fnGetSelected().length !== 0 ) {
- $(nButton).removeClass('DTTT_disabled');
- } else {
- $(nButton).addClass('DTTT_disabled');
- }
- },
- "fnComplete": null,
- "fnInit": function( nButton, oConfig ) {
- $(nButton).addClass('DTTT_disabled');
- },
- "fnCellRender": null
- },
- "ajax": {
- "sAction": "text",
- "sFieldBoundary": "",
- "sFieldSeperator": "\t",
- "sNewLine": "\n",
- "sAjaxUrl": "/xhr.php",
- "sToolTip": "",
- "sButtonClass": "DTTT_button_text",
- "sButtonClassHover": "DTTT_button_text_hover",
- "sButtonText": "Ajax button",
- "mColumns": "all",
- "bHeader": true,
- "bFooter": true,
- "bSelectedOnly": false,
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": function( nButton, oConfig ) {
- var sData = this.fnGetTableData(oConfig);
- $.ajax( {
- "url": oConfig.sAjaxUrl,
- "data": [
- { "name": "tableData", "value": sData }
- ],
- "success": oConfig.fnAjaxComplete,
- "dataType": "json",
- "type": "POST",
- "cache": false,
- "error": function () {
- alert( "Error detected when sending table data to server" );
- }
- } );
- },
- "fnSelect": null,
- "fnComplete": null,
- "fnInit": null,
- "fnAjaxComplete": function( json ) {
- alert( 'Ajax complete' );
- },
- "fnCellRender": null
- },
- "div": {
- "sAction": "div",
- "sToolTip": "",
- "sButtonClass": "DTTT_nonbutton",
- "sButtonClassHover": "",
- "sButtonText": "Text button",
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": null,
- "fnSelect": null,
- "fnComplete": null,
- "fnInit": null,
- "nContent": null,
- "fnCellRender": null
- },
- "collection": {
- "sAction": "collection",
- "sToolTip": "",
- "sButtonClass": "DTTT_button_collection",
- "sButtonClassHover": "DTTT_button_collection_hover",
- "sButtonText": "Collection",
- "fnMouseover": null,
- "fnMouseout": null,
- "fnClick": function( nButton, oConfig ) {
- this._fnCollectionShow(nButton, oConfig);
- },
- "fnSelect": null,
- "fnComplete": null,
- "fnInit": null,
- "fnCellRender": null
- }
-};
-/*
- * on* callback parameters:
- * 1. node - button element
- * 2. object - configuration object for this button
- * 3. object - ZeroClipboard reference (flash button only)
- * 4. string - Returned string from Flash (flash button only - and only on 'complete')
- */
-
-
-/**
- * @namespace TableTools default settings for initialisation
- */
-TableTools.DEFAULTS = {
- "sSwfPath": "media/swf/copy_cvs_xls_pdf.swf",
- "sRowSelect": "none",
- "sSelectedClass": "DTTT_selected",
- "fnPreRowSelect": null,
- "fnRowSelected": null,
- "fnRowDeselected": null,
- "aButtons": [ "copy", "csv", "xls", "pdf", "print" ]
-};
-
-
-/**
- * Name of this class
- * @constant CLASS
- * @type String
- * @default TableTools
- */
-TableTools.prototype.CLASS = "TableTools";
-
-
-/**
- * TableTools version
- * @constant VERSION
- * @type String
- * @default 2.0.2
- */
-TableTools.VERSION = "2.0.2";
-TableTools.prototype.VERSION = TableTools.VERSION;
-
-
-
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Initialisation
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/*
- * Register a new feature with DataTables
- */
-if ( typeof $.fn.dataTable == "function" &&
- typeof $.fn.dataTableExt.fnVersionCheck == "function" &&
- $.fn.dataTableExt.fnVersionCheck('1.8.2') )
-{
- $.fn.dataTableExt.aoFeatures.push( {
- "fnInit": function( oDTSettings ) {
- var oOpts = typeof oDTSettings.oInit.oTableTools != 'undefined' ?
- oDTSettings.oInit.oTableTools : {};
-
- var oTT = new TableTools( oDTSettings.oInstance, oOpts );
- TableTools._aInstances.push( oTT );
-
- return oTT.dom.container;
- },
- "cFeature": "T",
- "sFeature": "TableTools"
- } );
-}
-else
-{
- alert( "Warning: TableTools 2 requires DataTables 1.8.2 or newer - www.datatables.net/download");
-}
-
-})(jQuery, window, document);
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.min.js b/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.min.js
deleted file mode 100644
index 3455faf03..000000000
--- a/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.min.js
+++ /dev/null
@@ -1,81 +0,0 @@
-// Simple Set Clipboard System
-// Author: Joseph Huckaby
-var ZeroClipboard={version:"1.0.4-TableTools2",clients:{},moviePath:"",nextId:1,$:function(a){"string"==typeof a&&(a=document.getElementById(a));if(!a.addClass)a.hide=function(){this.style.display="none"},a.show=function(){this.style.display=""},a.addClass=function(a){this.removeClass(a);this.className+=" "+a},a.removeClass=function(a){this.className=this.className.replace(RegExp("\\s*"+a+"\\s*")," ").replace(/^\s+/,"").replace(/\s+$/,"")},a.hasClass=function(a){return!!this.className.match(RegExp("\\s*"+
-a+"\\s*"))};return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(a,b,c){(a=this.clients[a])&&a.receiveEvent(b,c)},register:function(a,b){this.clients[a]=b},getDOMObjectPosition:function(a){var b={left:0,top:0,width:a.width?a.width:a.offsetWidth,height:a.height?a.height:a.offsetHeight};if(""!=a.style.width)b.width=a.style.width.replace("px","");if(""!=a.style.height)b.height=a.style.height.replace("px","");for(;a;)b.left+=a.offsetLeft,b.top+=a.offsetTop,a=a.offsetParent;return b},
-Client:function(a){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);a&&this.glue(a)}};
-ZeroClipboard.Client.prototype={id:0,ready:!1,movie:null,clipText:"",fileName:"",action:"copy",handCursorEnabled:!0,cssEffects:!0,handlers:null,sized:!1,glue:function(a,b){this.domElement=ZeroClipboard.$(a);var c=99;this.domElement.style.zIndex&&(c=parseInt(this.domElement.style.zIndex)+1);var d=ZeroClipboard.getDOMObjectPosition(this.domElement);this.div=document.createElement("div");var e=this.div.style;e.position="absolute";e.left=this.domElement.offsetLeft+"px";e.top=this.domElement.offsetTop+
-"px";e.width=d.width+"px";e.height=d.height+"px";e.zIndex=c;if("undefined"!=typeof b&&""!=b)this.div.title=b;if(0!=d.width&&0!=d.height)this.sized=!0;this.domElement.parentNode.appendChild(this.div);this.div.innerHTML=this.getHTML(d.width,d.height)},positionElement:function(){var a=ZeroClipboard.getDOMObjectPosition(this.domElement),b=this.div.style;b.position="absolute";b.left=this.domElement.offsetLeft+"px";b.top=this.domElement.offsetTop+"px";b.width=a.width+"px";b.height=a.height+"px";if(0!=a.width&&
-0!=a.height)this.sized=!0,b=this.div.childNodes[0],b.width=a.width,b.height=a.height},getHTML:function(a,b){var c="",d="id="+this.id+"&width="+a+"&height="+b;if(navigator.userAgent.match(/MSIE/))var e=location.href.match(/^https/i)?"https://":"http://",c=c+('');else c+='';return c},hide:function(){if(this.div)this.div.style.left="-2000px"},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.div=this.domElement=null}},reposition:function(a){if(a)(this.domElement=ZeroClipboard.$(a))||this.hide();if(this.domElement&&this.div){var a=ZeroClipboard.getDOMObjectPosition(this.domElement),b=
-this.div.style;b.left=""+a.left+"px";b.top=""+a.top+"px"}},clearText:function(){this.clipText="";this.ready&&this.movie.clearText()},appendText:function(a){this.clipText+=a;this.ready&&this.movie.appendText(a)},setText:function(a){this.clipText=a;this.ready&&this.movie.setText(a)},setCharSet:function(a){this.charSet=a;this.ready&&this.movie.setCharSet(a)},setBomInc:function(a){this.incBom=a;this.ready&&this.movie.setBomInc(a)},setFileName:function(a){this.fileName=a;this.ready&&this.movie.setFileName(a)},
-setAction:function(a){this.action=a;this.ready&&this.movie.setAction(a)},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");this.handlers[a]||(this.handlers[a]=[]);this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;this.ready&&this.movie.setHandCursor(a)},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");switch(a){case "load":this.movie=document.getElementById(this.movieId);
-if(!this.movie){var c=this;setTimeout(function(){c.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){c=this;setTimeout(function(){c.receiveEvent("load",null)},100);this.ready=!0;return}this.ready=!0;this.movie.clearText();this.movie.appendText(this.clipText);this.movie.setFileName(this.fileName);this.movie.setAction(this.action);this.movie.setCharSet(this.charSet);this.movie.setBomInc(this.incBom);this.movie.setHandCursor(this.handCursorEnabled);
-break;case "mouseover":this.domElement&&this.cssEffects&&this.recoverActive&&this.domElement.addClass("active");break;case "mouseout":if(this.domElement&&this.cssEffects&&(this.recoverActive=!1,this.domElement.hasClass("active")))this.domElement.removeClass("active"),this.recoverActive=!0;break;case "mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case "mouseup":if(this.domElement&&this.cssEffects)this.domElement.removeClass("active"),this.recoverActive=!1}if(this.handlers[a])for(var d=
-0,e=this.handlers[a].length;d"\u00a1".toString().length?b.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,""):b.replace(/[^a-zA-Z0-9_\.,\-_ !\(\)]/g,"")},fnCalcColRatios:function(a){var b=this.s.dt.aoColumns,a=this._fnColumnTargets(a.mColumns),c=[],d=0,e=0,f,g;for(f=0,g=a.length;fl?g:l)+"px";k.style.width=(m>o?m:o)+"px";k.className="DTTT_collection_background";e(k).css("opacity",0);h.body.appendChild(k);h.body.appendChild(j);
-g=e(j).outerWidth();m=e(j).outerHeight();if(f+g>o)j.style.left=o-g+"px";if(d+m>l)j.style.top=d-m-e(a).outerHeight()+"px";this.dom.collection.collection=j;this.dom.collection.background=k;setTimeout(function(){e(j).animate({opacity:1},500);e(k).animate({opacity:0.25},500)},10);e(k).click(function(){c._fnCollectionHide.call(c,null,null)})},_fnCollectionHide:function(a,b){if(!(null!==b&&"collection"==b.sExtends)&&null!==this.dom.collection.collection)e(this.dom.collection.collection).animate({opacity:0},
-500,function(){this.style.display="none"}),e(this.dom.collection.background).animate({opacity:0},500,function(){this.parentNode.removeChild(this)}),this.dom.collection.collection=null,this.dom.collection.background=null},_fnRowSelectConfig:function(){if(this.s.master){var a=this;e(a.s.dt.nTable).addClass("DTTT_selectable");e("tr",a.s.dt.nTBody).live("click",function(b){if(this.parentNode==a.s.dt.nTBody){var c=a.s.dt.oInstance.fnGetNodes();-1===e.inArray(this,c)||null!==a.s.select.preRowSelect&&!a.s.select.preRowSelect.call(a,
-b)||("single"==a.s.select.type?a._fnRowSelectSingle.call(a,this):a._fnRowSelectMulti.call(a,this))}});a.s.dt.aoDrawCallback.push({fn:function(){a.s.select.all&&a.s.dt.oFeatures.bServerSide&&a.fnSelectAll()},sName:"TableTools_select"})}},_fnRowSelectSingle:function(a){this.s.master&&!e("td",a).hasClass(this.s.dt.oClasses.sRowEmpty)&&(e(a).hasClass(this.s.select.selectedClass)?this._fnRowDeselect(a):(0!==this.s.select.selected.length&&this._fnRowDeselectAll(),this.s.select.selected.push(a),e(a).addClass(this.s.select.selectedClass),
-null!==this.s.select.postSelected&&this.s.select.postSelected.call(this,a)),TableTools._fnEventDispatch(this,"select",a))},_fnRowSelectMulti:function(a){this.s.master&&!e("td",a).hasClass(this.s.dt.oClasses.sRowEmpty)&&(e(a).hasClass(this.s.select.selectedClass)?this._fnRowDeselect(a):(this.s.select.selected.push(a),e(a).addClass(this.s.select.selectedClass),null!==this.s.select.postSelected&&this.s.select.postSelected.call(this,a)),TableTools._fnEventDispatch(this,"select",a))},_fnRowSelectAll:function(){if(this.s.master){for(var a,
-b=0,c=this.s.dt.aiDisplayMaster.length;b/g,
-"").replace(/^\s+|\s+$/g,""),g=this._fnHtmlDecode(g),f+=this._fnBoundData(g,a.sFieldBoundary,m)+a.sFieldSeperator);f=f.slice(0,-1*a.sFieldSeperator.length);f+=k}for(d=0,j=h.aiDisplay.length;d]+)).*?>/gi,"$1$2$3"),g=g.replace(/<.*?>/g,"")):g+="",g=g.replace(/^\s+/,"").replace(/\s+$/,""),g=this._fnHtmlDecode(g),f+=this._fnBoundData(g,a.sFieldBoundary,m)+a.sFieldSeperator);f=f.slice(0,-1*a.sFieldSeperator.length);f+=k}f.slice(0,-1);if(a.bFooter){for(b=0,c=h.aoColumns.length;b/g,""),g=this._fnHtmlDecode(g),f+=this._fnBoundData(g,
-a.sFieldBoundary,m)+a.sFieldSeperator);f=f.slice(0,-1*a.sFieldSeperator.length)}return _sLastData=f},_fnBoundData:function(a,b,c){return""===b?a:b+a.replace(c,b+b)+b},_fnChunkData:function(a,b){for(var c=[],d=a.length,e=0;ea[c].length-
-8&&(a[c].substr(e),a[c]=a[c].substr(0,e)),b.innerHTML=a[c],f+=b.childNodes[0].nodeValue;return f},_fnPrintConfig:function(a,b){var c=this;null!==b.fnInit&&b.fnInit.call(this,a,b);if(""!==b.sToolTip)a.title=b.sToolTip;e(a).hover(function(){e(a).addClass(b.sButtonClassHover)},function(){e(a).removeClass(b.sButtonClassHover)});null!==b.fnSelect&&TableTools._fnEventListen(this,"select",function(d){b.fnSelect.call(c,a,b,d)});e(a).click(function(d){d.preventDefault();c._fnPrintStart.call(c,d,b);null!==
-b.fnClick&&b.fnClick.call(c,a,b,null);null!==b.fnComplete&&b.fnComplete.call(c,a,b,null,null);c._fnCollectionHide(a,b)})},_fnPrintStart:function(a,b){var c=this,d=this.s.dt;this._fnPrintHideNodes(d.nTable);this.s.print.saveStart=d._iDisplayStart;this.s.print.saveLength=d._iDisplayLength;if(b.bShowAll)d._iDisplayStart=0,d._iDisplayLength=-1,d.oApi._fnCalculateEnd(d),d.oApi._fnDraw(d);(""!==d.oScroll.sX||""!==d.oScroll.sY)&&this._fnPrintScrollStart(d);var d=d.aanFeatures,j;for(j in d)if("i"!=j&&"t"!=
-j&&1==j.length)for(var f=0,g=d[j].length;fPrint viewPlease use your browser's print function to print this table. Press escape when finished.",
-sMessage:"",bShowAll:!0,sToolTip:"View print view",sButtonClass:"DTTT_button_print",sButtonClassHover:"DTTT_button_print_hover",sButtonText:"Print",fnMouseover:null,fnMouseout:null,fnClick:null,fnSelect:null,fnComplete:null,fnInit:null,fnCellRender:null},text:{sAction:"text",sToolTip:"",sButtonClass:"DTTT_button_text",sButtonClassHover:"DTTT_button_text_hover",sButtonText:"Text button",mColumns:"all",bHeader:!0,bFooter:!0,bSelectedOnly:!1,fnMouseover:null,fnMouseout:null,fnClick:null,fnSelect:null,
-fnComplete:null,fnInit:null,fnCellRender:null},select:{sAction:"text",sToolTip:"",sButtonClass:"DTTT_button_text",sButtonClassHover:"DTTT_button_text_hover",sButtonText:"Select button",mColumns:"all",bHeader:!0,bFooter:!0,fnMouseover:null,fnMouseout:null,fnClick:null,fnSelect:function(a){0!==this.fnGetSelected().length?e(a).removeClass("DTTT_disabled"):e(a).addClass("DTTT_disabled")},fnComplete:null,fnInit:function(a){e(a).addClass("DTTT_disabled")},fnCellRender:null},select_single:{sAction:"text",
-sToolTip:"",sButtonClass:"DTTT_button_text",sButtonClassHover:"DTTT_button_text_hover",sButtonText:"Select button",mColumns:"all",bHeader:!0,bFooter:!0,fnMouseover:null,fnMouseout:null,fnClick:null,fnSelect:function(a){1==this.fnGetSelected().length?e(a).removeClass("DTTT_disabled"):e(a).addClass("DTTT_disabled")},fnComplete:null,fnInit:function(a){e(a).addClass("DTTT_disabled")},fnCellRender:null},select_all:{sAction:"text",sToolTip:"",sButtonClass:"DTTT_button_text",sButtonClassHover:"DTTT_button_text_hover",
-sButtonText:"Select all",mColumns:"all",bHeader:!0,bFooter:!0,fnMouseover:null,fnMouseout:null,fnClick:function(){this.fnSelectAll()},fnSelect:function(a){this.fnGetSelected().length==this.s.dt.fnRecordsDisplay()?e(a).addClass("DTTT_disabled"):e(a).removeClass("DTTT_disabled")},fnComplete:null,fnInit:null,fnCellRender:null},select_none:{sAction:"text",sToolTip:"",sButtonClass:"DTTT_button_text",sButtonClassHover:"DTTT_button_text_hover",sButtonText:"Deselect all",mColumns:"all",bHeader:!0,bFooter:!0,
-fnMouseover:null,fnMouseout:null,fnClick:function(){this.fnSelectNone()},fnSelect:function(a){0!==this.fnGetSelected().length?e(a).removeClass("DTTT_disabled"):e(a).addClass("DTTT_disabled")},fnComplete:null,fnInit:function(a){e(a).addClass("DTTT_disabled")},fnCellRender:null},ajax:{sAction:"text",sFieldBoundary:"",sFieldSeperator:"\t",sNewLine:"\n",sAjaxUrl:"/xhr.php",sToolTip:"",sButtonClass:"DTTT_button_text",sButtonClassHover:"DTTT_button_text_hover",sButtonText:"Ajax button",mColumns:"all",bHeader:!0,
-bFooter:!0,bSelectedOnly:!1,fnMouseover:null,fnMouseout:null,fnClick:function(a,b){var c=this.fnGetTableData(b);e.ajax({url:b.sAjaxUrl,data:[{name:"tableData",value:c}],success:b.fnAjaxComplete,dataType:"json",type:"POST",cache:!1,error:function(){alert("Error detected when sending table data to server")}})},fnSelect:null,fnComplete:null,fnInit:null,fnAjaxComplete:function(){alert("Ajax complete")},fnCellRender:null},div:{sAction:"div",sToolTip:"",sButtonClass:"DTTT_nonbutton",sButtonClassHover:"",
-sButtonText:"Text button",fnMouseover:null,fnMouseout:null,fnClick:null,fnSelect:null,fnComplete:null,fnInit:null,nContent:null,fnCellRender:null},collection:{sAction:"collection",sToolTip:"",sButtonClass:"DTTT_button_collection",sButtonClassHover:"DTTT_button_collection_hover",sButtonText:"Collection",fnMouseover:null,fnMouseout:null,fnClick:function(a,b){this._fnCollectionShow(a,b)},fnSelect:null,fnComplete:null,fnInit:null,fnCellRender:null}};TableTools.DEFAULTS={sSwfPath:"media/swf/copy_cvs_xls_pdf.swf",
-sRowSelect:"none",sSelectedClass:"DTTT_selected",fnPreRowSelect:null,fnRowSelected:null,fnRowDeselected:null,aButtons:["copy","csv","xls","pdf","print"]};TableTools.prototype.CLASS="TableTools";TableTools.VERSION="2.0.2";TableTools.prototype.VERSION=TableTools.VERSION;"function"==typeof e.fn.dataTable&&"function"==typeof e.fn.dataTableExt.fnVersionCheck&&e.fn.dataTableExt.fnVersionCheck("1.8.2")?e.fn.dataTableExt.aoFeatures.push({fnInit:function(a){a=new TableTools(a.oInstance,"undefined"!=typeof a.oInit.oTableTools?
-a.oInit.oTableTools:{});TableTools._aInstances.push(a);return a.dom.container},cFeature:"T",sFeature:"TableTools"}):alert("Warning: TableTools 2 requires DataTables 1.8.2 or newer - www.datatables.net/download")})(jQuery,window,document);
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.min.js.gz b/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.min.js.gz
deleted file mode 100644
index 6ec0fb9cb..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/js/TableTools.min.js.gz and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/js/ZeroClipboard.js b/airtime_mvc/public/js/datatables/plugin/TableTools/js/ZeroClipboard.js
deleted file mode 100644
index 73707f024..000000000
--- a/airtime_mvc/public/js/datatables/plugin/TableTools/js/ZeroClipboard.js
+++ /dev/null
@@ -1,367 +0,0 @@
-// Simple Set Clipboard System
-// Author: Joseph Huckaby
-
-var ZeroClipboard = {
-
- version: "1.0.4-TableTools2",
- clients: {}, // registered upload clients on page, indexed by id
- moviePath: '', // URL to movie
- nextId: 1, // ID of next movie
-
- $: function(thingy) {
- // simple DOM lookup utility function
- if (typeof(thingy) == 'string') thingy = document.getElementById(thingy);
- if (!thingy.addClass) {
- // extend element with a few useful methods
- thingy.hide = function() { this.style.display = 'none'; };
- thingy.show = function() { this.style.display = ''; };
- thingy.addClass = function(name) { this.removeClass(name); this.className += ' ' + name; };
- thingy.removeClass = function(name) {
- this.className = this.className.replace( new RegExp("\\s*" + name + "\\s*"), " ").replace(/^\s+/, '').replace(/\s+$/, '');
- };
- thingy.hasClass = function(name) {
- return !!this.className.match( new RegExp("\\s*" + name + "\\s*") );
- }
- }
- return thingy;
- },
-
- setMoviePath: function(path) {
- // set path to ZeroClipboard.swf
- this.moviePath = path;
- },
-
- dispatch: function(id, eventName, args) {
- // receive event from flash movie, send to client
- var client = this.clients[id];
- if (client) {
- client.receiveEvent(eventName, args);
- }
- },
-
- register: function(id, client) {
- // register new client to receive events
- this.clients[id] = client;
- },
-
- getDOMObjectPosition: function(obj) {
- // get absolute coordinates for dom element
- var info = {
- left: 0,
- top: 0,
- width: obj.width ? obj.width : obj.offsetWidth,
- height: obj.height ? obj.height : obj.offsetHeight
- };
-
- if ( obj.style.width != "" )
- info.width = obj.style.width.replace("px","");
-
- if ( obj.style.height != "" )
- info.height = obj.style.height.replace("px","");
-
- while (obj) {
- info.left += obj.offsetLeft;
- info.top += obj.offsetTop;
- obj = obj.offsetParent;
- }
-
- return info;
- },
-
- Client: function(elem) {
- // constructor for new simple upload client
- this.handlers = {};
-
- // unique ID
- this.id = ZeroClipboard.nextId++;
- this.movieId = 'ZeroClipboardMovie_' + this.id;
-
- // register client with singleton to receive flash events
- ZeroClipboard.register(this.id, this);
-
- // create movie
- if (elem) this.glue(elem);
- }
-};
-
-ZeroClipboard.Client.prototype = {
-
- id: 0, // unique ID for us
- ready: false, // whether movie is ready to receive events or not
- movie: null, // reference to movie object
- clipText: '', // text to copy to clipboard
- fileName: '', // default file save name
- action: 'copy', // action to perform
- handCursorEnabled: true, // whether to show hand cursor, or default pointer cursor
- cssEffects: true, // enable CSS mouse effects on dom container
- handlers: null, // user event handlers
- sized: false,
-
- glue: function(elem, title) {
- // glue to DOM element
- // elem can be ID or actual DOM element object
- this.domElement = ZeroClipboard.$(elem);
-
- // float just above object, or zIndex 99 if dom element isn't set
- var zIndex = 99;
- if (this.domElement.style.zIndex) {
- zIndex = parseInt(this.domElement.style.zIndex) + 1;
- }
-
- // find X/Y position of domElement
- var box = ZeroClipboard.getDOMObjectPosition(this.domElement);
-
- // create floating DIV above element
- this.div = document.createElement('div');
- var style = this.div.style;
- style.position = 'absolute';
- style.left = (this.domElement.offsetLeft)+'px';
- //style.left = (this.domElement.offsetLeft+2)+'px';
- style.top = this.domElement.offsetTop+'px';
- style.width = (box.width) + 'px';
- //style.width = (box.width-4) + 'px';
- style.height = box.height + 'px';
- style.zIndex = zIndex;
- if ( typeof title != "undefined" && title != "" ) {
- this.div.title = title;
- }
- if ( box.width != 0 && box.height != 0 ) {
- this.sized = true;
- }
-
- // style.backgroundColor = '#f00'; // debug
- this.domElement.parentNode.appendChild(this.div);
-
- this.div.innerHTML = this.getHTML( box.width, box.height );
- },
-
- positionElement: function() {
- var box = ZeroClipboard.getDOMObjectPosition(this.domElement);
- var style = this.div.style;
-
- style.position = 'absolute';
- style.left = (this.domElement.offsetLeft)+'px';
- style.top = this.domElement.offsetTop+'px';
- style.width = box.width + 'px';
- style.height = box.height + 'px';
-
- if ( box.width != 0 && box.height != 0 ) {
- this.sized = true;
- } else {
- return;
- }
-
- var flash = this.div.childNodes[0];
- flash.width = box.width;
- flash.height = box.height;
- },
-
- getHTML: function(width, height) {
- // return HTML for movie
- var html = '';
- var flashvars = 'id=' + this.id +
- '&width=' + width +
- '&height=' + height;
-
- if (navigator.userAgent.match(/MSIE/)) {
- // IE gets an OBJECT tag
- var protocol = location.href.match(/^https/i) ? 'https://' : 'http://';
- html += '';
- }
- else {
- // all other browsers get an EMBED tag
- html += '';
- }
- return html;
- },
-
- hide: function() {
- // temporarily hide floater offscreen
- if (this.div) {
- this.div.style.left = '-2000px';
- }
- },
-
- show: function() {
- // show ourselves after a call to hide()
- this.reposition();
- },
-
- destroy: function() {
- // destroy control and floater
- if (this.domElement && this.div) {
- this.hide();
- this.div.innerHTML = '';
-
- var body = document.getElementsByTagName('body')[0];
- try { body.removeChild( this.div ); } catch(e) {;}
-
- this.domElement = null;
- this.div = null;
- }
- },
-
- reposition: function(elem) {
- // reposition our floating div, optionally to new container
- // warning: container CANNOT change size, only position
- if (elem) {
- this.domElement = ZeroClipboard.$(elem);
- if (!this.domElement) this.hide();
- }
-
- if (this.domElement && this.div) {
- var box = ZeroClipboard.getDOMObjectPosition(this.domElement);
- var style = this.div.style;
- style.left = '' + box.left + 'px';
- style.top = '' + box.top + 'px';
- }
- },
-
- clearText: function() {
- // clear the text to be copy / saved
- this.clipText = '';
- if (this.ready) this.movie.clearText();
- },
-
- appendText: function(newText) {
- // append text to that which is to be copied / saved
- this.clipText += newText;
- if (this.ready) { this.movie.appendText(newText) ;}
- },
-
- setText: function(newText) {
- // set text to be copied to be copied / saved
- this.clipText = newText;
- if (this.ready) { this.movie.setText(newText) ;}
- },
-
- setCharSet: function(charSet) {
- // set the character set (UTF16LE or UTF8)
- this.charSet = charSet;
- if (this.ready) { this.movie.setCharSet(charSet) ;}
- },
-
- setBomInc: function(bomInc) {
- // set if the BOM should be included or not
- this.incBom = bomInc;
- if (this.ready) { this.movie.setBomInc(bomInc) ;}
- },
-
- setFileName: function(newText) {
- // set the file name
- this.fileName = newText;
- if (this.ready) this.movie.setFileName(newText);
- },
-
- setAction: function(newText) {
- // set action (save or copy)
- this.action = newText;
- if (this.ready) this.movie.setAction(newText);
- },
-
- addEventListener: function(eventName, func) {
- // add user event listener for event
- // event types: load, queueStart, fileStart, fileComplete, queueComplete, progress, error, cancel
- eventName = eventName.toString().toLowerCase().replace(/^on/, '');
- if (!this.handlers[eventName]) this.handlers[eventName] = [];
- this.handlers[eventName].push(func);
- },
-
- setHandCursor: function(enabled) {
- // enable hand cursor (true), or default arrow cursor (false)
- this.handCursorEnabled = enabled;
- if (this.ready) this.movie.setHandCursor(enabled);
- },
-
- setCSSEffects: function(enabled) {
- // enable or disable CSS effects on DOM container
- this.cssEffects = !!enabled;
- },
-
- receiveEvent: function(eventName, args) {
- // receive event from flash
- eventName = eventName.toString().toLowerCase().replace(/^on/, '');
-
- // special behavior for certain events
- switch (eventName) {
- case 'load':
- // movie claims it is ready, but in IE this isn't always the case...
- // bug fix: Cannot extend EMBED DOM elements in Firefox, must use traditional function
- this.movie = document.getElementById(this.movieId);
- if (!this.movie) {
- var self = this;
- setTimeout( function() { self.receiveEvent('load', null); }, 1 );
- return;
- }
-
- // firefox on pc needs a "kick" in order to set these in certain cases
- if (!this.ready && navigator.userAgent.match(/Firefox/) && navigator.userAgent.match(/Windows/)) {
- var self = this;
- setTimeout( function() { self.receiveEvent('load', null); }, 100 );
- this.ready = true;
- return;
- }
-
- this.ready = true;
- this.movie.clearText();
- this.movie.appendText( this.clipText );
- this.movie.setFileName( this.fileName );
- this.movie.setAction( this.action );
- this.movie.setCharSet( this.charSet );
- this.movie.setBomInc( this.incBom );
- this.movie.setHandCursor( this.handCursorEnabled );
- break;
-
- case 'mouseover':
- if (this.domElement && this.cssEffects) {
- //this.domElement.addClass('hover');
- if (this.recoverActive) this.domElement.addClass('active');
- }
- break;
-
- case 'mouseout':
- if (this.domElement && this.cssEffects) {
- this.recoverActive = false;
- if (this.domElement.hasClass('active')) {
- this.domElement.removeClass('active');
- this.recoverActive = true;
- }
- //this.domElement.removeClass('hover');
- }
- break;
-
- case 'mousedown':
- if (this.domElement && this.cssEffects) {
- this.domElement.addClass('active');
- }
- break;
-
- case 'mouseup':
- if (this.domElement && this.cssEffects) {
- this.domElement.removeClass('active');
- this.recoverActive = false;
- }
- break;
- } // switch eventName
-
- if (this.handlers[eventName]) {
- for (var idx = 0, len = this.handlers[eventName].length; idx < len; idx++) {
- var func = this.handlers[eventName][idx];
-
- if (typeof(func) == 'function') {
- // actual function reference
- func(this, args);
- }
- else if ((typeof(func) == 'object') && (func.length == 2)) {
- // PHP style object + method, i.e. [myObject, 'myMethod']
- func[0][ func[1] ](this, args);
- }
- else if (typeof(func) == 'string') {
- // name of function
- window[func](this, args);
- }
- } // foreach event handler defined
- } // user defined handler for event
- }
-
-};
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/swf/copy_cvs_xls.swf b/airtime_mvc/public/js/datatables/plugin/TableTools/swf/copy_cvs_xls.swf
deleted file mode 100644
index 4c0156d5e..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/swf/copy_cvs_xls.swf and /dev/null differ
diff --git a/airtime_mvc/public/js/datatables/plugin/TableTools/swf/copy_cvs_xls_pdf.swf b/airtime_mvc/public/js/datatables/plugin/TableTools/swf/copy_cvs_xls_pdf.swf
deleted file mode 100644
index 9b8aabd0b..000000000
Binary files a/airtime_mvc/public/js/datatables/plugin/TableTools/swf/copy_cvs_xls_pdf.swf and /dev/null differ