This commit is contained in:
rog1121 2014-03-01 15:53:55 -07:00
parent a86dbb24b6
commit d4ebc926bc
2 changed files with 10 additions and 10 deletions

View File

@ -17,7 +17,12 @@ $(function() {
})
})
// Make all table with "datatable" class a datatable
// Several JS Glocal Classes
$(document).ready(function() {
$('.datatable').dataTable();
});
// Make all tables with database class sortable
$('.datatable').dataTable();
// Bootstrap iOS style switches for checkboxes with switch class
$('.switch').bootstrapSwitch();
});

View File

@ -65,8 +65,7 @@
{if $GLOBAL.config.disable_notifications != 1}
<td>
<input type="hidden" name="data[{$WORKERS[worker].id}][monitor]" value="0" />
<input type="checkbox" data-size="small" name="data[{$WORKERS[worker].id}][monitor]" id="data[{$WORKERS[worker].id}][monitor]" value="1" {if $WORKERS[worker].monitor}checked{/if}/>
<input type="checkbox" class="switch" data-size="small" name="data[{$WORKERS[worker].id}][monitor]" id="data[{$WORKERS[worker].id}][monitor]" value="1" {if $WORKERS[worker].monitor}checked{/if}/>
</td>
{/if}
<td class="text-right">{$WORKERS[worker].hashrate|number_format}</td>
@ -85,8 +84,4 @@
</form>
</div>
</div>
</div>
<script>
$("[id='data[{$WORKERS[worker].id}][monitor]']").bootstrapSwitch();
</script>
</div>