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() {
|
||||
$('.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}
|
||||
<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>
|
||||
Loading…
Reference in New Issue
Block a user