Switches
This commit is contained in:
parent
a86dbb24b6
commit
d4ebc926bc
@ -17,7 +17,12 @@ $(function() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// Make all table with "datatable" class a datatable
|
// Several JS Glocal Classes
|
||||||
$(document).ready(function() {
|
$(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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -65,8 +65,7 @@
|
|||||||
{if $GLOBAL.config.disable_notifications != 1}
|
{if $GLOBAL.config.disable_notifications != 1}
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="data[{$WORKERS[worker].id}][monitor]" value="0" />
|
<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>
|
</td>
|
||||||
{/if}
|
{/if}
|
||||||
<td class="text-right">{$WORKERS[worker].hashrate|number_format}</td>
|
<td class="text-right">{$WORKERS[worker].hashrate|number_format}</td>
|
||||||
@ -86,7 +85,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
|
||||||
$("[id='data[{$WORKERS[worker].id}][monitor]']").bootstrapSwitch();
|
|
||||||
</script>
|
|
||||||
Loading…
Reference in New Issue
Block a user