From d4ebc926bc13a37b2e1f011feaf2f724e9d76f37 Mon Sep 17 00:00:00 2001 From: rog1121 Date: Sat, 1 Mar 2014 15:53:55 -0700 Subject: [PATCH] Switches --- public/site_assets/bootstrap/js/mpos.js | 11 ++++++++--- .../templates/bootstrap/account/workers/default.tpl | 9 ++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/public/site_assets/bootstrap/js/mpos.js b/public/site_assets/bootstrap/js/mpos.js index de552279..3943e033 100755 --- a/public/site_assets/bootstrap/js/mpos.js +++ b/public/site_assets/bootstrap/js/mpos.js @@ -17,7 +17,12 @@ $(function() { }) }) -// Make all table with "datatable" class a datatable +// Several JS Glocal Classes $(document).ready(function() { - $('.datatable').dataTable(); -}); \ No newline at end of file + // Make all tables with database class sortable + $('.datatable').dataTable(); + + // Bootstrap iOS style switches for checkboxes with switch class + $('.switch').bootstrapSwitch(); +}); + diff --git a/public/templates/bootstrap/account/workers/default.tpl b/public/templates/bootstrap/account/workers/default.tpl index 9444a94d..1f99f56f 100755 --- a/public/templates/bootstrap/account/workers/default.tpl +++ b/public/templates/bootstrap/account/workers/default.tpl @@ -65,8 +65,7 @@ {if $GLOBAL.config.disable_notifications != 1} - - + {/if} {$WORKERS[worker].hashrate|number_format} @@ -85,8 +84,4 @@ - - - \ No newline at end of file + \ No newline at end of file